-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Enable mat2/3/4 attribute in shader #16141
Conversation
What is the status on this? Any chance of a merge in the near future? Thanks! |
what's the status now ? thanks ! |
I guess this will need to be rebased? |
As far as I remember, this code was originally added for an instanced mesh implementation. However, @mrdoob implemented it differently: three.js/src/renderers/webgl/WebGLBindingStates.js Lines 392 to 415 in ae1098e
|
From #16140 (comment) I'm willing to rebase to resolve the conflicts if anyone is still interested in this addition although Three.js API supports instancing now. |
@takahirox Sounds good to me! I think now it's a good time for it 👍 |
0da59a3
to
b4e4588
Compare
Updated. |
84e0dd4
to
6aca4f7
Compare
Thanks! |
#16140
https://stackoverflow.com/questions/38853096/webgl-how-to-bind-values-to-a-mat4-attribute
Suggested API.
Change
WebGLProgram
.mat2/3/4
renderer callsenableAttribute()
andvertexAttribPointer()
multiple times.