Skip to content
Snippets Groups Projects
Commit 81783448 authored by David Gobbi's avatar David Gobbi
Browse files

Make wireframe normal computation more robust

This allows wireframes to render correctly on linux with amdgpu
drivers.  The previous code always used dFdx as the line vector,
unless dFdx.x was equal to zero.  The new code adds dFdx and
dFdy to get the line vector, after using dot product to get them
both pointing in the same direction (since they might be pointing
in opposite directions along the line).
parent f2c452c9
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