added shader hot reloading, compute shader now uses some of paper technique

This commit is contained in:
2024-09-14 17:09:20 -04:00
parent 244440c38a
commit 1cecc3cdaf
8 changed files with 612 additions and 582 deletions

View File

@@ -41,7 +41,6 @@ fn fs_main(
) -> @location(0) vec4<f32> {
let win_dim = vec2<f32>(f32(view.width), f32(view.height));
var pos = in.clip_position.xy / win_dim;
pos.y = 1.0 - pos.y;
return textureSample(t_diffuse, s_diffuse, pos);
}