cedricpinson / osgjs

Javascript Implementation of OpenSceneGraph [DISCONTINUED] Website archived https://cedricpinson.github.io/osgjs-website/
MIT License
786 stars 202 forks source link

Bugfix for tracking of attributes in custom programs #1008

Open mmassing opened 5 years ago

mmassing commented 5 years ago

If your program wants to use uniforms defined by some StateAttributes (e.g. Material, Light, and Textures bounds to unit 0 and 1), use:

program.setTrackAttributes({ attributeKeys : [ 'Material' , 'Light' ], textureAttributeKeys : [ [ 'Texture' ], [ 'Texture' ] ]}); });