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

Support for texture array / compressed texture array in MeshBasicMaterial and MeshStandardMaterial by index #29161

Open
A2H2 opened this issue Aug 17, 2024 · 0 comments

Comments

@A2H2
Copy link

A2H2 commented Aug 17, 2024

Description

Currently its not possible to create material using single texture from regular or compressed texture array.

Solution

When creating material, I would like to specify concrete texture from texture array by index / layer / depth so given texture is used. Also I would be able to change index to change texture easily in code.

Alternatives

Currently to my understanding only custom shader can work with texture arrays.

Additional context

Currently I am loading lot of texture from ktx2 container which contains lot of compressed textures. I would like to use existing MeshBasicMaterial so I can benefit from its features like lights.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants