79740166

Date: 2025-08-19 16:14:08
Score: 2.5
Natty:
Report link

I don't' think the popular geometric shadowing terms behave correctly with negative numbers. It's typical to clamp the ndots before passing them to the geometry terms, but geometry doesn't just go away because it goes into shadow. It' better to make the geometry functions work correctly with negative numbers. What I did was just save the sign of the ndot inputs and then work on the abs of them. Then restore the sign at the output. Simple but effective.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dan_R