tweak debugging
This commit is contained in:
@@ -185,6 +185,9 @@ fn trace_ray(ray_origin: vec3<f32>, ray_direction: vec3<f32>, ray_t_min: f32, ra
|
||||
rayQueryConfirmIntersection(&rq);
|
||||
}
|
||||
}
|
||||
if candidate.kind == RAY_QUERY_INTERSECTION_AABB {
|
||||
rayQueryConfirmIntersection(&rq);
|
||||
}
|
||||
rayQueryTerminate(&rq);
|
||||
}
|
||||
return rayQueryGetCommittedIntersection(&rq);
|
||||
@@ -201,6 +204,9 @@ fn trace_ray_previous_frame(ray_origin: vec3<f32>, ray_direction: vec3<f32>, ray
|
||||
rayQueryConfirmIntersection(&rq);
|
||||
}
|
||||
}
|
||||
if candidate.kind == RAY_QUERY_INTERSECTION_AABB {
|
||||
rayQueryConfirmIntersection(&rq);
|
||||
}
|
||||
rayQueryTerminate(&rq);
|
||||
}
|
||||
return rayQueryGetCommittedIntersection(&rq);
|
||||
@@ -278,7 +284,7 @@ fn resolve_ray_hit_full(ray_hit: RayIntersection) -> ResolvedRayHitFull {
|
||||
if ray_hit.kind == RAY_QUERY_INTERSECTION_TRIANGLE {
|
||||
let barycentrics = vec3(1.0 - ray_hit.barycentrics.x - ray_hit.barycentrics.y, ray_hit.barycentrics);
|
||||
resolved = resolve_triangle_data_full(ray_hit.instance_custom_data, ray_hit.primitive_index, barycentrics);
|
||||
} else {
|
||||
} else { //RAY_QUERY_INTERSECTION_GENERATED
|
||||
resolved = resolve_tape_data_full(ray_hit.instance_custom_data, vec3());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user