Skip to content

Commit

Permalink
fix ejoy#149
Browse files Browse the repository at this point in the history
  • Loading branch information
HengHuH committed May 14, 2024
1 parent 5b7bec9 commit d97bba9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/ant.shadow_bounding/scene_bounding.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ local function build_scene_info(C, sb)
end

local si = sb.scene_info
si.zn, si.zf = math.max(F.n, zn), math.min(zf, F.f)
if zn > zf then
si.zn, si.zf = F.n, F.f
else
si.zn, si.zf = math.max(F.n, zn), math.min(zf, F.f)
end

if math3d.aabb_isvalid(PSC) then
si.PSC = PSC
Expand Down

0 comments on commit d97bba9

Please sign in to comment.