CYLINDER
The texture is wrapped around the horizon
like a cylinder and visible at all places where a sky texture is assigned to
a surface in the map. This can be used for mountains or for a city landscape
in a distance. The texture must be a power of two in horizontal size, and the
horizontal edges must match each other seamlessly. It may be bigger
than the
texture size limit of the 3D card. The scale_x parameter
gives the horizontal sector covered by the texture in 360 degree units (default
1= full circle). The horizontal and vertical position can be set through its pan and tilt angles.
By changing pan through a function the cylinder
can be rotated. TGA texture are translucent depending on their alpha channel.
Type:
flag
(flags2, sky definition only)
Example (lite-C):
ENTITY* mountain =
{
type = "mountains.pcx";
layer = 3;
scale_x = 0.25;
tilt = -10;
flags2 = SKY | CYLINDER | SHOW;
}
Example (C-Script):
SKY mountain =
{
type = "mountains.pcx";
layer = 3;
scale_x = 0.25;
tilt = -10;
flags = CYLINDER | SHOW;
}
See also:
ENTITY, type, layer, CUBE, DOME, ent_createlayer
► latest
version online