glscene

 

TGLSkyBox

Page history last edited by skinhat 4 yrs ago

Provides a backdrop for a scene. The skybox is a cube (camera invariant cube) that surrounds a scene where a texture for each of the 6 faces of the skybox can be specified. For example it is possible to specify the texture for the clouds plane that is directly above the camera. As well as the 6 faces of the skybox cube there is an extra cloud plane. The cloud planes height and size can be set. Note that even though TGLSkyBox has a position and direction property these properties arent used.

Important TGLSkyBox properties include:

cloudsplaneoffset: Relative height of cloud plane above the ground.

cloudsplanesize: Relative size of the cloud plane

matnameback : Texture for the back face of the skybox cube

matnamebottom: Texture for the bottom face of the skybox cube

matnameclouds: Texture for the cloud plane.

matnamefront: Texture for the front face of the skybox cube

matnameleft: Texture for the left face of the skybox cube

matnameright: Texture for the right face of the skybox cube

matnametop: Texture for the top face of the skybox cube

Demo: CVS/Demos/rendering/SkyBox

Unit: GLSkyBox

Descends from TGLImmaterialSceneObject.

Comments (0)

You don't have permission to comment on this page.