minor fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user