Skip to content

sampler2D array #71

@JustLexxy

Description

@JustLexxy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions