From dcc59b04dde9c488bfacb6182cc04bf766614646 Mon Sep 17 00:00:00 2001 From: Molive Date: Fri, 16 Oct 2026 00:23:58 +0100 Subject: [PATCH] tweak debugging --- crates/bevy_tape_drive_solari/src/scene/bindings.wesl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/bevy_tape_drive_solari/src/scene/bindings.wesl b/crates/bevy_tape_drive_solari/src/scene/bindings.wesl index 4ed79b2..5cf0a26 100644 --- a/crates/bevy_tape_drive_solari/src/scene/bindings.wesl +++ b/crates/bevy_tape_drive_solari/src/scene/bindings.wesl @@ -185,6 +185,9 @@ fn trace_ray(ray_origin: vec3, ray_direction: vec3, 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, ray_direction: vec3, 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()); }