Add cubemap template images to Importing images #9719
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Images were generated using https://github.com/Calinou/godot-cubemap-generator.
I have two questions though:
The X axis seems to be inverted when I display the cubemap using a sky shader. In the project linked above, I've had to swap the X+ and X- images' positions for the cubemap display to look correct in
example_cubemap_display.tscn(the image is included in the repository).The whole cubemap texture is also flipped (for the X and Z axes) when displayed as a sky shader. You can notice this if you set the shader parameter in the sky shader of
example_cubemap_display.tscnto display one of the cubemap template images; letters will appear flipped.Once I figure out these issues, I can look into adding more documentation and templates for cubemap arrays. (I've already started by mentioning that they only work with Forward+/Mobile, not Compatibility, due to OpenGL not supporting cubemap arrays until OpenGL 4.x.)