Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset internal array when uniform length changes #519

Merged

Conversation

BrettASwift
Copy link
Contributor

@kadst43

The array of values that is passed to the shader by threejs is created once and has a fixed length. Threejs does not check if the value length changes. This will reset the array when the uniform value length has changed so threejs will recreate it with the proper length.

@kadst43
Copy link
Contributor

kadst43 commented Oct 14, 2015

👍

BrettASwift added a commit that referenced this pull request Oct 14, 2015
…rray-length

Reset internal array when uniform length changes
@BrettASwift BrettASwift merged commit d119a26 into branch/mars-game-development Oct 14, 2015
@BrettASwift BrettASwift deleted the branch/uniform-array-length branch October 14, 2015 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants