You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been doing some research about uniform block objects and instancing with OGL. Right now Geometry raises a warning for anything that's contained inside of a uniform block object. It also raises a warning for gl_InstanceID.
It chokes on gl_InstanceID. I just did a check to see if it's that name and bail out if it is.
If I make a PR that provided better support for instancing and Uniform Block Objects would that be ok? The reason I'm interested in doing it this way is because I can get really good performance and modify groups of instances of different geometries with a single change. BTW this code won't work on Firefox atm. Firefox doesn't support vectors in uniform block objects for some reason. uniform vec3 groupPos[10];. Safari and Chrome are fine though.
If there's another way to do this let me know please.
The text was updated successfully, but these errors were encountered:
UBO support would be an excellent feature for OGL, absolutely! Especially with Webgl2 starting to gain universal support with the addition of safari.
At the moment there would still be a need to create a WebGL1 fallback, however I'm still interested to see your implementation in any case!
Hello,
I've been doing some research about uniform block objects and instancing with OGL. Right now Geometry raises a warning for anything that's contained inside of a uniform block object. It also raises a warning for gl_InstanceID.
Secondly, on this line right here:
ogl/src/core/Geometry.js
Line 179 in 9dae6ba
It chokes on
gl_InstanceID
. I just did a check to see if it's that name and bail out if it is.If I make a PR that provided better support for instancing and Uniform Block Objects would that be ok? The reason I'm interested in doing it this way is because I can get really good performance and modify groups of instances of different geometries with a single change. BTW this code won't work on Firefox atm. Firefox doesn't support vectors in uniform block objects for some reason.
uniform vec3 groupPos[10];
. Safari and Chrome are fine though.If there's another way to do this let me know please.
The text was updated successfully, but these errors were encountered: