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
mmassing wants to merge 1 commit into
cedricpinson:masterfrom
mmassing:fix_tracked_attributes
Open

Bugfix for tracking of attributes in custom programs#1008
mmassing wants to merge 1 commit into
cedricpinson:masterfrom
mmassing:fix_tracked_attributes

Conversation

@mmassing

Copy link
Copy Markdown

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