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

Sky Box images need to be the same resolution #133

Open
Zwark opened this issue Oct 10, 2024 · 0 comments
Open

Sky Box images need to be the same resolution #133

Zwark opened this issue Oct 10, 2024 · 0 comments

Comments

@Zwark
Copy link

Zwark commented Oct 10, 2024

I had a working sky box in libGDX that had texture sizes of 256 x 256 pixels except for the bottom texture which was 2x2 since it was rarely seen. With the bottom texture being 2x2, the gltf library renders a completely black skybox, but when I scale the bottom texture to 256 X 256 it works fine.

Skybox textures needing to be the same size wasn't obvious to me and a comment that the textures need to be the same size on the createCubemap method would have been helpful. It took me way too long to figure it out since I initially assumed I was messing up the skybox/environmentCubemap setup somehow.

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

No branches or pull requests

1 participant