Shader Parameter

From Burnout Wiki
Revision as of 19:34, 7 October 2023 by Burninrubber0 (talk | contribs) (Created page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
RwShaderParameter
aka ShaderParameter
No Example
Resource names Unknown
Type ID 0x14
Category Generic
Memory
distribution
Main Memory only
Imports Unknown
Imported by Material Technique
Editor
available?
No

Shader parameters are used in Black 2 (2006-06-29 build). Their purpose is unclear and the type was deprecated by the time Burnout 5 (2006-11-13 build) was built.

Structures

Header

Offset Length Type Name Description Comments
0x0 0x4 Entry info* ? Entry info
0x4 0x4 float* ? Data
0x8 0x4 uint32_t ? Data count

Entry info

Offset Length Type Name Description Comments
0x0 0x4 uint32_t ? Number of entries
0x4 0x4 uint32_t ? Data count Same as header data count
0x8 0x4 Entry ? Entries

Entry

Offset Length Type Name Description Comments
0x0 0x4 ? ? Always null
0x4 0x4 char* ? Name
0x8 0x4 uint32_t ? Name CRC32 hash
0xC 0x4 char* ? Type name Includes:
INSTANCE
MATERIAL
LIGHTD
0x10 0x4 uint32_t ? Type name CRC32 hash
0x14 0x4 ? ? Always null
0x18 0x2 uint16_t ? Always 1
0x1A 0x1 uint8_t ? Data count Subset of data pointed to in header
Sequential—if first entry uses 10, second starts at 11th, and so on
0x1B 0x1 ? ? Padding Always null