Skybox (DEF): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
Created page with "'''skybox''' { [...] } Defines a skybox that overrides a parallaxing floor or ceiling in OpenGL rendering modes. NOTE: All six faces are required to be specified. == Tokens..."
 
Fox (talk | contribs)
Line 15: Line 15:
Specifies the palette number the skybox should happen for.
Specifies the palette number the skybox should happen for.


'''front''' <filename> (or '''ft''' / '''forward''' )<br />
'''front''' <filename> (or '''ft''' / '''forward''' )
'''right''' <filename> (or '''rt''' )<br />
'''right''' <filename> (or '''rt''' / '''right''' )
'''back'''  <filename> (or '''bk''' )<br />
'''back'''  <filename> (or '''bk''' / '''back''' )
'''left'''  <filename> (or '''lf''' / '''lt''')<br />
'''left''' <filename> (or '''lf''' / '''left''' / '''lt''' )
'''top''' <filename> (or '''up''' / '''ceiling''' / '''ceil''' )<br />
'''top''' <filename> (or '''up''' / '''ceiling''' / '''ceil''' )
'''down''' <filename> (or '''dn''' / '''bottom''' / '''floor''' )<br />
'''down''' <filename> (or '''dn''' / '''floor'''  / '''bottom''')
 
'''front''' <filename> '''ft''' <filename> '''forward''' <filename> <br />
'''right''' <filename> '''rt''' <filename> <br />
'''back''' <filename> '''bk''' <filename> <br />
'''left''' <filename> '''lf''' <filename> '''lt''' <filename> <br />
'''top''' <filename> '''up''' <filename> '''ceiling''' <filename> '''ceil''' <filename><br />
'''down''' <filename> '''dn''' <filename> '''bottom''' <filename> '''floor''' <filename><br />


Defines a single face of the skybox where facename may be any of these keywords appropriate for the face in question.
Defines a single face of the skybox where facename may be any of these keywords appropriate for the face in question.

Revision as of 07:20, 21 February 2020

skybox { [...] }

Defines a skybox that overrides a parallaxing floor or ceiling in OpenGL rendering modes.

NOTE: All six faces are required to be specified.

Tokens

tile <tilenum>

Specifies the ART file tile to override.

pal <palnum>

Specifies the palette number the skybox should happen for.

front <filename> (or ft / forward ) right <filename> (or rt / right ) back <filename> (or bk / back ) left <filename> (or lf / left / lt ) top <filename> (or up / ceiling / ceil ) down <filename> (or dn / floor / bottom)

Defines a single face of the skybox where facename may be any of these keywords appropriate for the face in question.

Examples

Example:

skybox {
  tile 3586 pal 0
  front "mymod/sky_1.png" nocompress 
  right "mymod/sky_2.png" nocompress 
  back  "mymod/sky_3.png" nocompress
  left  "mymod/sky_4.png" nocompress 
  top   "mymod/sky_5.png" nocompress
  down  "mymod/sky_6.png" nocompress
}