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

adds an example for 3D texture use #9

Closed
wants to merge 1 commit into from

Conversation

clindsey
Copy link

@clindsey clindsey commented Feb 1, 2023

This change adds my attempt at creating an example of working with 3D textures.

  • Shows how to put 3D texture data into a 1D array
  • Shows how to work with a 3D texture in the shader code, projecting from 2D uv coordinates to 3D cube coordinates and back
  • The visualization is basic but I think it makes sense, the 3D texture is really just a very tall 2D texture that vertically slices into frames

relates to #8

@clindsey clindsey force-pushed the 8-3d-texture-example branch from e7199f0 to 9aae107 Compare February 1, 2023 15:47
@clindsey clindsey force-pushed the 8-3d-texture-example branch from 9aae107 to 45e3d41 Compare February 1, 2023 15:50
@clindsey clindsey closed this Feb 3, 2023
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