Map Configuration
Light Function
The light function (and its alias the ambient function) sets the ambient light color for the map.
The color parameter can be a hex color, named color, or any other valid css color.
light(color)
ambient(color)
Sun Function
The sun function sets the color and angle of the sunlight for the map.
Parameters:color|yaw,pitch
Examples:
sun(orange), sun(white|45,45)
Fog Function
The fog function sets the color and distance of the fog for the map.
Parameters:color|near,far
Color is the color of the fog, and near and far are the distances where the fog starts and ends.
Camera Function
The camera function sets various properties of the camera when the map is loaded.
Parameters:yaw,pitch|dist|height|mode
Yaw and pitch are the initial camera angles. Yaw is rotation side to side, and pitch is up and down.
Dist is the distance from the camera to the character. Set this to zero for 1st person mode.
Height is a vertical offset from the character's position that the camera look at. The purpose of this is so the character's head or body can be in the center of the screen rather than their feet.
Mode is the initial camera mode. The options are "perspective", "orthographic", "2d". You only need to specify the first letter of the mode.
Examples:camera(0,70|5|0.5|p)
camera(45,60|10|0|o)
camera(mode:2d)
Ceiling Function
The ceiling function sets up a ceiling for the map. This is intended for interior maps.
The ceiling function is a Texture Function with an extra parameter group inserted as the second parameter group.
Parameters:img,x,y,w,h|height,backface|alpha|glow,glowintensity|anim:animx,animy
The new parameters are height and backface. Height is the z position the ceiling will be at.
Backface is whether the ceiling mesh should be double sided or not.
ceiling(A4,0,0|2,false)
Edge Function
The edge function controls how the edges of the map will be treated.
edge(true)
walls around the edge of the map will be rendered.
edge(false)
walls around the edge of the map will not be rendered.
edge(clamp)
tiles along the edge of the map will be repeated in areas outside the map.
You can also specify a number to specify the number of tiles near the edge that will be repeated.
For example, edge(clamp,2)
will repeat the 2 tiles around the edge of the map.
Base Function
Sets a base height for the map. The base height will be added to the height of all tiles.
base(n)
Bloom Function
Adjusts the bloom effect for the map.
Most postprocessing effects are adjusted using the Set Command, but bloom settings might need to be adjusted for each map.
Parameters:intensity,threshold,radius
Skybox and Skyball Functions
Skybox Function
Sets up a skybox for the map.
Parameters:default,top,bottom,north,west,south,east|index,alpha|autorotate:aryaw,arpitch,arroll|rotation:yaw,pitch,roll
You can use the skybox function multiple times with different indexes to set up different layers.
Skyball Function
The skyball function sets up a skyball for the map.
Parameters:texture,repeat|index,alpha|autorotate:aryaw,arpitch,arroll|rotation:yaw,pitch,roll
For more info about skyboxes and skyballs, see the Skybox and Skyball Commands.
Enable/Disable Function
Enables or disables 3D rendering for the map.
enable()
disable()