Multipsky (DEF): Difference between revisions
Created page with "Category:WIP pages Category:DEF commands" |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
[[ | <span {{code}}>'''multipsky''' { [...] }</span> | ||
Defines a set of tiles to be used on a parallaxed texture. | |||
== Tokens == | |||
<span {{code}}>'''tile''' <tilenum></span> | |||
The tile number that will display the set of tiles. | |||
<span {{code}}>'''panel''' <number> <offset></span> | |||
Define multiple texture to be used by one parallaxed texture. | |||
<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. | |||
The number of parallaxed textures equals 2<sup><value></sup>. | |||
<span {{code}}>'''yscale''' <value></span> | |||
Change the y-scale of the sky. (Range: 0-65536. Defaults to 65536) | |||
<span {{code}}>'''yoffset''' <value></span> | |||
Change the y-center of the sky. | |||
<span {{code}}>'''horizfrac''' <value></span> | |||
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 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 | |||
} | |||
[[Category:DEF commands]] | [[Category:DEF commands]] |
Latest revision as of 18: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 }