autodesk-forks / MaterialX

MaterialX C++ and Python libraries
http://www.materialx.org/
Apache License 2.0
107 stars 23 forks source link

Implement geompropvalue as GLSL varying parameters #1046

Closed JGamache-autodesk closed 3 years ago

JGamache-autodesk commented 4 years ago

The geompropvalue node in GLSL must be coded as varying parameter since there is no OpenGL API that allows a shader to request a named stream from the geometry.

So the GLSL codegen for these nodes was changed to pass varying input streams. This will not work for boolean and string geompropvalues so the GLSL codegen correctly leaves them as unimplemented. Fixes #1042