Difference between revisions of "Reflection Material (RW Section)"
Jump to navigation
Jump to search
(→See also) |
|||
Line 1: | Line 1: | ||
+ | {{RW Section | ||
+ | | NAME = Reflection Material | ||
+ | | VENDORNAME = Rockstar Games | ||
+ | | MODULENAME = Plug-In | ||
+ | | MODULEID = 0253F2 | ||
+ | | IDENTIFIER = FC | ||
+ | | VERSION = 3.6.0.3 (and higher) | ||
+ | | PARENTS = [[Material (RW Section)|Material]] ''([[Extension (RW Section)|Extension]])'' | ||
+ | }} | ||
+ | |||
{{RW Section|Reflection Material|0x0253F2FC}} | {{RW Section|Reflection Material|0x0253F2FC}} | ||
− | A '''Reflection Material''' is one of Rockstar's [[List of RW section IDs#Rockstar.27s_Custom_Sections|custom sections]]. In [[GTA San Andreas]] it is used to override vehicle reflection maps. | + | A '''Reflection Material''' is one of Rockstar's [[List of RW section IDs#Rockstar.27s_Custom_Sections|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 Set (RW Section)|pipeline]] extion for the geometries [[Atomic (RW Section)|atomic]] needs to be changed. |
− | |||
− | 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 Set (RW Section)|pipeline]] extion for the geometries [[Atomic (RW Section)|atomic]] needs to be changed. | ||
==Data Layout== | ==Data Layout== | ||
Line 15: | Line 23: | ||
== See also == | == See also == | ||
+ | |||
* [[Material (RW Section)|Material]] | * [[Material (RW Section)|Material]] | ||
* [[User Data PLG (RW Section)|User Data PLG]] | * [[User Data PLG (RW Section)|User Data PLG]] | ||
Line 22: | Line 31: | ||
* [[Texture (RW Section)|Texture]] | * [[Texture (RW Section)|Texture]] | ||
* [[Geometry List (RW Section)|Geometry List]] | * [[Geometry List (RW Section)|Geometry List]] | ||
− | |||
− | {{N|SA | + | {{N|SA}} |
− |
Revision as of 13:00, 11 September 2020
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 |
{{{NAME}}} | |
---|---|
RenderWare Stream Section | |
Vendor | {{{VENDORNAME}}} |
Module | {{{MODULENAME}}} |
Module ID | 0x{{{MODULEID}}}
|
Identifier | 0x{{{IDENTIFIER}}}
|
Chunk ID | 0x{{{MODULEID}}}{{{IDENTIFIER}}}
|
Versions | All |
Hierarchy | |
Parents: None | |
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)