Fix #129420: precision issue in light tree distant light angle #129489

Merged
Weizhen Huang merged 1 commits from weizhen/blender:fix-129420-4.3 into blender-v4.3-release 2024-10-29 18:01:11 +01:00

1 Commits

Author SHA1 Message Date
655ccd6ed4 Fix #129420: precision issue in light tree distant light angle
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
In volume segment, the minimal angle formed by the bounding cone axis
and the vector pointing from the cluster centroid and any point on the
ray is computed via `dot(bcone.axis, point_to_centroid)`, see Fig.8. in
paper.
For distant light this angle is 0, but due to numerical issues this is
not always true. Therefore explicitly assign `-bcone.axis` to
`point_to_centroid` in this case.
2024-10-28 22:10:40 +01:00