Hi it's me again!
Is it possible to have an array to store many iterations of tTriangleTexture and tAABBTexture?
I need to be able to add objects on the fly without adding new code. I was able to do it with normal objects such as boxes, quads and spheres, but it doesn't seem to work with loaded 3D objects.
The problem seems to come from texture arrays working differently than normal arrays, but in 2 days of researches i haven't been able to find what i need.
Only other solution (that i know) would be to make the JS generate the glsl code depending on its needs, but that would add a ton of other complications that i'd rather not have.
Hi it's me again!
Is it possible to have an array to store many iterations of tTriangleTexture and tAABBTexture?
I need to be able to add objects on the fly without adding new code. I was able to do it with normal objects such as boxes, quads and spheres, but it doesn't seem to work with loaded 3D objects.
The problem seems to come from texture arrays working differently than normal arrays, but in 2 days of researches i haven't been able to find what i need.
Only other solution (that i know) would be to make the JS generate the glsl code depending on its needs, but that would add a ton of other complications that i'd rather not have.