Multipsky (DEF): Difference between revisions
No edit summary |
No edit summary |
||
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. | ||
'''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]]. |
Revision as of 05:02, 23 February 2020
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.
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 horiz, 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 }