Multipsky (DEF): Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
'''multipsky''' { [...] } | <span {{code}}>'''multipsky''' { [...] }</span> | ||
Defines a set of tiles to be used on a parallaxed texture. | Defines a set of tiles to be used on a parallaxed texture. | ||
Line 5: | Line 5: | ||
== Tokens == | == Tokens == | ||
'''tile''' <tilenum> | <span {{code}}>'''tile''' <tilenum></span> | ||
The tile number that will display the set of tiles. | The tile number that will display the set of tiles. | ||
'''panel''' <number> <offset> | <span {{code}}>'''panel''' <number> <offset></span> | ||
Define multiple texture to be used by one parallaxed texture. | Define multiple texture to be used by one parallaxed texture. | ||
'''lognumtiles''' <value> | <span {{code}}>'''lognumtiles''' <value></span> | ||
By default, the engine will display 8 parallaxed textures in 360 degrees, regardless of the width of the tiles. Use this to change the number of parallaxed textures horizontally. | By default, the engine will display 8 parallaxed textures in 360 degrees, regardless of the width of the tiles. Use this to change the number of parallaxed textures horizontally. | ||
Line 19: | Line 19: | ||
The number of parallaxed textures equals 2<sup><value></sup>. | The number of parallaxed textures equals 2<sup><value></sup>. | ||
'''yscale''' <value> | <span {{code}}>'''yscale''' <value></span> | ||
Change the y-scale of the sky. | Change the y-scale of the sky. (Range: 0-65536. Defaults to 65536) | ||
'''yoffset''' <value> | <span {{code}}>'''yoffset''' <value></span> | ||
Change the y-center of the sky. | Change the y-center of the sky. | ||
'''horizfrac''' <value> | <span {{code}}>'''horizfrac''' <value></span> | ||
Change the scale which the sky moves up or down with the [[horiz|vertical angle]]. | Change the scale which the sky moves up or down with the [[horiz|vertical angle]]. | ||
The default value is 32768. A value of 65536 means the sky will align perfectly with the | The default value is 32768. A value of 65536 means the sky will align perfectly with the horizon, like the sky used in the Derelic level. | ||
== Examples == | == Examples == |
Latest revision as of 17:05, 15 October 2021
multipsky { [...] }
Defines a set of tiles to be used on a parallaxed texture.
Tokens
tile <tilenum>
The tile number that will display the set of tiles.
panel <number> <offset>
Define multiple texture to be used by one parallaxed texture.
lognumtiles <value>
By default, the engine will display 8 parallaxed textures in 360 degrees, regardless of the width of the tiles. Use this to change the number of parallaxed textures horizontally.
The number of parallaxed textures equals 2<value>.
yscale <value>
Change the y-scale of the sky. (Range: 0-65536. Defaults to 65536)
yoffset <value>
Change the y-center of the sky.
horizfrac <value>
Change the scale which the sky moves up or down with the vertical angle.
The default value is 32768. A value of 65536 means the sky will align perfectly with the horizon, like the sky used in the Derelic level.
Examples
Defines a set of tiles identical to the Los Angeles sky (tile #89) used in Duke Nukem 3D:
multipsky 89 { lognumtiles 3 horizfrac 17408 panel 0 1 panel 1 2 panel 2 1 panel 3 3 panel 4 4 panel 5 0 panel 6 2 panel 7 3 }