Extra Vert Colour (RW Section)

From GTAModding
Revision as of 12:33, 22 June 2015 by Wesser (Talk | contribs) (Renewed old link after article movement.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
RW Stream Section
Extra Vert Colour
0x0253F2F9

Extra Vert Colour, formerly Night Vertex Colors, is one of Rockstar's custom sections. In GTA San Andreas it is used to store alternative vertex colors displayed at night time. The typical location in a SA dff section hierarchy is Clump > Geometry List > Geometry > Extension > Extra Vert Colour.

Magic number

The initial 4 bytes sequence signals the usage of the extension:

UINT32  magicNumber

If zero, the section ends here. A non-zero value has no particular meaning and can be any (see Meaningless values).

Color data

This is an array of nighttime prelit colors blended according to a balancing parameter swinging throughout the game's virtual day:

BYTE[4] nightVertColours[geometry->numVertices]