minor fixes

This commit is contained in:
2026-10-26 01:28:45 +00:00
parent 7fde7f5d96
commit e0a0c687e7
4 changed files with 20 additions and 10 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ fn trace_tape(metadata: TapeMetadata, spatial_texture: u32, primitive_id: u32, r
let near_plane = near_far.x;
let far_plane = near_far.y;
if (false) { // SPEC_BOUNDING_BOXES
if (true) { // SPEC_BOUNDING_BOXES
return near_plane;
}
+1 -1
View File
@@ -23,7 +23,7 @@ fn get_internal_pos(base_index: u32, subdivision_log2: u32) -> vec3<f32> {
fn get_corner(internal_pos: vec3<f32>, metadata: TapeMetadata, pos: vec3<f32>) -> vec3<f32> {
return
(((vec3(0.0f) / f32(1 << metadata.subdivision_log2)) + internal_pos) * metadata.dimensions)
(((pos / f32(1 << metadata.subdivision_log2)) + internal_pos) * metadata.dimensions)
+ metadata.lowest_corner;
}