SkyBox()

Syntax

Result = SkyBox(TextureName$ [, FogColor, FogIntensity, FogStartDistance, FogEndDistance])
Description
Loads a 6 face cube and creates an artificial box which is far away from the camera but close to the world. This is a very useful function to easily make a closed world.

Parameters

TextureName$ The textures must be in a path previously declared with the Add3DArchive() function. The base name of the textures, which should be named using the following rule:
  TextureName_BK ; BacK face
  TextureName_FR ; FRont face
  TextureName_DN ; DowN face
  TextureName_UP ; UP face
  TextureName_LF ; LeFt face
  TextureName_RT ; RighT face
FogColor (optional) The fog color. RGB() can be used to get a valid color value. If not specified, the fog settings are inherited from the Fog() command.
FogIntensity (optional) The fog intensity. If sets to zero, the fog effect is disable.
FogStartDistance (optional) The distance from the camera (in world units) where the fog should start.
FogEndDistance (optional) The distance from the camera where the fog is fully opaque.

Return value

Returns non-zero if the SkyBox has been successfully created.

See Also

SkyDome()

Supported OS

All

<- ShowGUI() - Engine3D Index - SkyDome() ->