Skip to content
This repository was archived by the owner on Oct 20, 2020. It is now read-only.

Bugfix for tracking of attributes in custom programs #1008

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mmassing
Copy link

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

…ograms.

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' ] ]});
});
@mmassing mmassing force-pushed the fix_tracked_attributes branch from 89da226 to 13655b0 Compare March 15, 2019 11:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant