User Guide
Quick Reference
Modding
Development
User Guide
Quick Reference
Modding
Development
<Copy> Sky { ID = ""; Flags = flaga | flagb | flagc; Height = 0.666667; Horizon offset = 0.0; Light color { 1.0 1.0 1.0 }; Layer 1/2 { Flags = flaga | flagb | flagc; Texture = ""; Offset = 0.0; Color limit = 0.0; }; Model { ID = ""; Layer = 0; Frame interval = 1.0; Color { 1.0 1.0 1.0 1.0 }; Offset factor { 0.0 0.0 0.0 }; Rotate { 0.0 0.0 }; Yaw = 0.0; Yaw speed = 0.0; Execute = ""; }; }
If the Copy attribute is used, all the data of the previous definition is copied to this one. For the first definition in a file Copy has no effect.
The identifier of this definition. This is used when referencing sky definitions from Map Info definitions.
Name | Description |
---|---|
sphere | Draw the sky sphere even when sky models have been set up. |
Height of the sky sphere (0-1). The real height is an angle determined using Pi/2 * (sky height), which means if the sky height is 1, the sphere covers the whole sky.
Angle offset to sky vertices, in radians. Negative angles move the horizon downwards.
RGB color. Outdoor areas will be tinted this color.
Only one of Texture/Flat/Sprite/System can be specified for a given layer. If more are specified, the last is used.
Name | Description |
---|---|
enable | Enable layer. By default the layer is disabled and will not be rendered. |
mask | Layer texture's color zero should be masked. |
There can be up to 32 Model blocks in a Sky definition. Each block defines one a sky model.
Sky { ID = "sky1"; Height = 0.49; Horizon offset = -0.105; Layer 1 { Flags = enable; Texture = "SKY1"; } }