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

Implement Skybox via CubeTexture #48

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

njibhu
Copy link
Owner

@njibhu njibhu commented Dec 4, 2020

Using a cubetexture would make the rendering setup much easier but this is not a priority since the existing setup doesn't seem to have much impact on the performances.

const height = texture.image.height;
const data = texture.image.data;

const newWidth = width / 2;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually wrong, the height is sliced, not the width

@njibhu njibhu force-pushed the master branch 4 times, most recently from 0cec9f6 to ff07381 Compare March 16, 2021 21:19
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

Successfully merging this pull request may close these issues.

1 participant