Palookup (DEF): Difference between revisions
No edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
'''raw''' { [...] } | '''raw''' { [...] } | ||
DESCRIPTION | |||
:: '''file''' <filename> | :: '''file''' <filename> | ||
:: | :: DESCRIPTION | ||
:: '''offset''' <value> | :: '''offset''' <value> | ||
:: | :: DESCRIPTION | ||
:: '''noshades''' | :: '''noshades''' | ||
:: | :: DESCRIPTION | ||
'''copy''' <> | '''copy''' <> | ||
DESCRIPTION | |||
'''undef''' <> | '''undef''' <> | ||
DESCRIPTION | |||
'''fogpal''' { [...] } | '''fogpal''' { [...] } | ||
DESCRIPTION | |||
:: '''red''' <red><br />'''green''' <green><br />'''blue''' <blue> | :: '''red''' <red><br />'''green''' <green><br />'''blue''' <blue> | ||
:: | :: DESCRIPTION | ||
'''makepalookup''' { [...] } | '''makepalookup''' { [...] } | ||
DESCRIPTION | |||
:: '''red''' <red><br />'''green''' <green><br />'''blue''' <blue> | :: '''red''' <red><br />'''green''' <green><br />'''blue''' <blue> | ||
:: | :: DESCRIPTION | ||
:: '''remappal''' <palnum> | :: '''remappal''' <palnum> | ||
:: | :: DESCRIPTION | ||
:: '''remapself''' | :: '''remapself''' | ||
:: | :: DESCRIPTION | ||
'''floorpal'''<br />'''nofloorpal''' | '''floorpal'''<br />'''nofloorpal''' | ||
DESCRIPTION | |||
== Examples == | == Examples == |
Revision as of 09:09, 22 February 2020
This page is under construction. Please help review and edit this page. |
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.
Tokens
raw { [...] }
DESCRIPTION
- file <filename>
- DESCRIPTION
- offset <value>
- DESCRIPTION
- noshades
- DESCRIPTION
copy <>
DESCRIPTION
undef <>
DESCRIPTION
fogpal { [...] }
DESCRIPTION
- red <red>
green <green>
blue <blue>
- red <red>
- DESCRIPTION
makepalookup { [...] }
DESCRIPTION
- red <red>
green <green>
blue <blue>
- red <red>
- DESCRIPTION
- remappal <palnum>
- DESCRIPTION
- remapself
- DESCRIPTION
floorpal
nofloorpal
DESCRIPTION
Examples
The following PNG image contains the shade table in Duke Nukem 3D v1.5:
The following PNG image contains the palette swaps in Duke Nukem 3D v1.5:
This example will load a shade table with 32 steps:
palookup 0 { raw { file "shade.raw" } }
This example will load 3 lookup palettes in the same file:
palookup 1 { raw { file "pals.raw" noshades } } palookup 2 { raw { file "pals.raw" offset 256 noshades } } palookup 3 { raw { file "pals.raw" offset 512 noshades } }