Open mmassing opened 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' ] ]}); });
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' ] ]}); });