From eb6b53008017e7a1913eccc5988c9bb9cee9d3f0 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sat, 6 May 2023 12:27:28 +0100 Subject: [PATCH] Fix incorrect brickmap index in HitInfo result --- assets/shaders/voxel_volume.wgsl | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/shaders/voxel_volume.wgsl b/assets/shaders/voxel_volume.wgsl index fa7ff49..c566cff 100644 --- a/assets/shaders/voxel_volume.wgsl +++ b/assets/shaders/voxel_volume.wgsl @@ -247,6 +247,7 @@ fn grid_cast_ray(orig_ray_pos: vec3, ray_dir: vec3) -> HitInfo { hit_info.hit = tmp_voxel_hit.hit; hit_info.hit_pos = tmp_voxel_hit.hit_pos + (map_pos * 8); hit_info.mask = tmp_voxel_hit.mask; + hit_info.brickmap_idx = tmp_voxel_hit.brickmap_idx; break; } }