AcademySoftwareFoundation / OpenShadingLanguage

Advanced shading language for production GI renderers
BSD 3-Clause "New" or "Revised" License
2.05k stars 347 forks source link

Calculatenormal needs fliphandedness #1783

Closed sfriedmapixar closed 4 months ago

sfriedmapixar commented 4 months ago

Description

The calculatenormal() shadeop references flipHandedness in order to know which order to cross the derivatives. This change makes it so flipHandedness shows up in the list of "globals_needed" that can be queried by renderers to lazily fill in.

Tests

The globals-needed test was extended to test caclulatenormal() as well

Checklist: