feat: Good bvh traversal

This commit is contained in:
2026-11-15 12:00:08 +01:00
parent 4581538c66
commit dd32c772e5
8 changed files with 552 additions and 247 deletions
+4
View File
@@ -75,6 +75,10 @@ void gi(uint32_t3 location: SV_DispatchThreadID, uint32_t3 local_location: SV_Gr
let pos = gbuffer_position.Load(location.xy);
let normal = gbuffer_normal.Load(location.xy);
let albedo = gbuffer_albedo.Load(location.xy);
// let floored_pos = floor(pos);
// let c = (floored_pos.x + floored_pos.y + floored_pos.z) % 2;
// target_texture.Store(location.xy, albedo * select(c == 0, 0.5, 1.));
target_texture.Store(location.xy, albedo);
return;
}