Skip to content
Snippets Groups Projects
Commit a1e4732d authored by David Gobbi's avatar David Gobbi Committed by Mathieu Westphal (Kitware)
Browse files

Avoid over/underflow in shader normal computation

When face dimensions are very large (1e+12) or very small, the
normal computations in the shader can overflow or underflow, and
faces will be rendered as black.  This fix scales the partial
derivatives before they are used to compute the normals.

(cherry picked from commit 60d39d32)
parent 4f5f004e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment