Skip to content

Commit

Permalink
fixup vms cluster culling
Browse files Browse the repository at this point in the history
  • Loading branch information
Try committed Oct 15, 2024
1 parent 72e5768 commit 32d98cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shader/virtual_shadow/vsm_cluster_task.comp
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ bool pageHiZTest(vec4 aabb, float depthMax, const ivec3 at, const ivec2 sz) {
aabb = aabb*0.5+0.5; // [0..1]
aabb = aabb*VSM_PAGE_TBL_SIZE;

ivec4 iaabb = ivec4(ivec2(floor(aabb.xy)), ivec2(ceil(aabb.zw))+1);
ivec4 iaabb = ivec4(ivec2(aabb.xy), ivec2(aabb.zw)+1);
iaabb.xy = max(iaabb.xy, ivec2(at.xy));
iaabb.zw = min(iaabb.zw, ivec2(at.xy+sz));
iaabb.zw = min(iaabb.zw, ivec2(VSM_PAGE_TBL_SIZE));
Expand Down

0 comments on commit 32d98cd

Please sign in to comment.