You can provide up to 6 textures that define 6 sides of a skybox. See wikipedia about skyboxes. Set 6 URLs like
TCastleBackground.TexturePositiveX for this (our naming follows e.g. X3D and Emil Persson’s conventions.
How to make such skyboxes?
You can also define a sky gradient using
TCastleBackground.SkyEquatorColor, ground gradient using
TCastleBackground.GroundEquatorColor, and additional gradient to smooth transition between the sky and ground using
The sky and ground gradients are visible if you don’t provide the 6 textures for a skybox, or if some of them use alpha for transparency.
If you only want to define a background as a simple color, then leave
Watch the presentation how to use
To improve this documentation just edit the source of this page in AsciiDoctor (simple wiki-like syntax) and create a pull request to Castle Game Engine WWW (cge-www) repository.
Copyright Michalis Kamburelis and Castle Game Engine Contributors.