Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
trs:miscellany [2020/05/19 14:49]
zdimension [Palette]
trs:miscellany [2020/05/19 14:49] (current)
zdimension [Palette]
Line 35: Line 35:
 This consists of 256 [[trs:​fundamentals#​tr_colour|[tr_colour]]] structs, one for each palette entry. However, the individual colour values range from 0 to 63; they must be multiplied by 4 (or bitshifted by 2 to the left) to get the correct values. Palette is used for all 8-bit colour, such as 8-bit textures. This consists of 256 [[trs:​fundamentals#​tr_colour|[tr_colour]]] structs, one for each palette entry. However, the individual colour values range from 0 to 63; they must be multiplied by 4 (or bitshifted by 2 to the left) to get the correct values. Palette is used for all 8-bit colour, such as 8-bit textures.
  
-{{:​icons:​tr1.png?​nolink|TR1 only}} First entry in palette is treated as //​transparent colour// used for textures with alpha testing. In later games, transparent colour was replaced by so-called ​""​magenta transparency"", meaning that any pixel with red and blue values at maximum and green value at zero, is treated as completely transparent.+{{:​icons:​tr1.png?​nolink|TR1 only}} First entry in palette is treated as //​transparent colour// used for textures with alpha testing. In later games, transparent colour was replaced by so-called "​magenta transparency",​ meaning that any pixel with red and blue values at maximum and green value at zero, is treated as completely transparent.
  
 ===== Object Textures ===== ===== Object Textures =====
trs/miscellany.txt · Last modified: 2020/05/19 14:49 by zdimension
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0