Multipsky (DEF): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
No edit summary
 
Line 21: Line 21:
<span {{code}}>'''yscale''' <value></span>
<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)


<span {{code}}>'''yoffset''' <value></span>
<span {{code}}>'''yoffset''' <value></span>

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
}