Reflection Material (RW Section)

From GTAMods Wiki
Revision as of 13:00, 11 September 2020 by Aschratt (talk | contribs)
Jump to navigation Jump to search
Reflection Material
RenderWare Stream Section
Vendor Rockstar Games
Module Plug-In
Module ID 0x0253F2
Identifier 0xFC
Chunk ID 0x0253F2FC
Versions 3.6.0.3 (and higher)
Hierarchy
Parents:
Material (Extension)
Children:
None
Extensions:
None
File Format

A Reflection Material is one of Rockstar's custom sections. In GTA San Andreas it is used to override vehicle reflection maps. The Reflection Material is exclusive to San Andreas. To use a reflective material, the rendering pipeline that is responsible for rendering the object must support reflective materials. This is true by default for vehicles, but not for buildings. To hook reflection into the rendering pipeline, the pipeline extion for the geometries atomic needs to be changed.

Data Layout

4b - FLOAT    - Environment Map Scale X
4b - FLOAT    - Environment Map Scale Y
4b - FLOAT    - Environment Map Offset X
4b - FLOAT    - Environment Map Offset Y
4b - FLOAT    - Reflection Intensity (Shininess, 0.0-1.0)
4b - DWORD    - Environment Texture Ptr, always 0 (zero)

See also