refactor: add common shaders helpers + fix shadow export

This commit is contained in:
2026-09-20 13:37:33 +02:00
parent d84e752e15
commit 5a81247d76
12 changed files with 384 additions and 289 deletions
+1 -6
View File
@@ -13,12 +13,7 @@ struct VsOut {
@vertex
fn vs_main(@builtin(vertex_index) idx: u32) -> VsOut {
var verts = array<vec2<f32>, 3>(
vec2<f32>(-1.0, -1.0),
vec2<f32>(3.0, -1.0),
vec2<f32>(-1.0, 3.0),
);
let p = verts[idx];
let p = fullscreen_triangle_pos(idx);
var out: VsOut;
out.pos = vec4<f32>(p, 0.0, 1.0);
// Map NDC to texture UV. v is flipped so the cache's top row (rendered at