summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_function.cpp
diff options
context:
space:
mode:
authorlawnjelly <lawnjelly@gmail.com>2024-03-20 14:11:36 +0000
committerlawnjelly <lawnjelly@gmail.com>2024-03-20 16:47:54 +0000
commit70cd25f3eba286efa6149d0ccc267b3fb2cb91d0 (patch)
tree7b0dd72337c49098464cb3703f15298e840f6a2b /modules/gdscript/gdscript_function.cpp
parentfe01776f05b1787b28b4a270d53037a3c25f4ca2 (diff)
downloadredot-engine-70cd25f3eba286efa6149d0ccc267b3fb2cb91d0.tar.gz
Tighter shadow culling - fix light colinear to frustum edge
In rare situations if a light is placed near colinear to a frustum edge, the extra culling plane derived can have an inaccurate normal due to floating point error. This PR detects colinear triangles, and prevents adding a culling plane in this situation.
Diffstat (limited to 'modules/gdscript/gdscript_function.cpp')
0 files changed, 0 insertions, 0 deletions