Palookup (DEF): Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Fox (talk | contribs)
No edit summary
Fox (talk | contribs)
No edit summary
Line 1: Line 1:
'''palookup''' <palnum> { [...] }
'''palookup''' <palnum> { [...] }


Loads a [[pal|lookup palette]].
Loads a [[pal|lookup palette]] from a raw image file.
 
The image file MUST contain a 256 color table of its own. Each pixel will have their matching color in the table converted in the lookup table.
 
A single image file may contain multiple lookup palettes, and '''offset''' can used to locate it.


Not to be confused with [[basepalette (DEF)|base palette]]. See also [[shadefactor (DEF)|shadefactor]] and [[Palette (environment)#Global Palettes|palette listing]].
Not to be confused with [[basepalette (DEF)|base palette]]. See also [[shadefactor (DEF)|shadefactor]] and [[Palette (environment)#Global Palettes|palette listing]].
For reference, [[File:Duke3d basepal.png|this file]] is a PNG version of the basepal used in Duke 3D.


== Tokens ==
== Tokens ==

Revision as of 02:32, 22 February 2020

palookup <palnum> { [...] }

Loads a lookup palette from a raw image file.

The image file MUST contain a 256 color table of its own. Each pixel will have their matching color in the table converted in the lookup table.

A single image file may contain multiple lookup palettes, and offset can used to locate it.

Not to be confused with base palette. See also shadefactor and palette listing.

For reference, this file is a PNG version of the basepal used in Duke 3D.

Tokens

raw

file
offset
noshades

copy undef fogpal

red
green
blue

makepalookup

red
green
blue
remappal
remapself

floorpal nofloorpal