Environment Keyframe: Difference between revisions
Content added Content deleted
(Fix namespaces) |
m (Updated common data type links.) |
||
Line 59: | Line 59: | ||
| 0x8 || 0x8 || || || padding || |
| 0x8 || 0x8 || || || padding || |
||
|- |
|- |
||
| 0x10 || 0x10 || [[ |
| 0x10 || 0x10 || [[Vector4]] || mv4Scale || || |
||
|} |
|} |
||
Line 72: | Line 72: | ||
| 0x8 || 0x8 || || || padding || |
| 0x8 || 0x8 || || || padding || |
||
|- |
|- |
||
| 0x10 || 0x10 || [[ |
| 0x10 || 0x10 || [[Vector2]] || mv2Amount || || |
||
|- |
|- |
||
| 0x20 || 0x10 || [[ |
| 0x20 || 0x10 || [[Vector2]] || mv2Centre || || |
||
|- |
|- |
||
| 0x30 || 0x10 || [[ |
| 0x30 || 0x10 || [[Vector4]] || mv4InnerColour || || |
||
|- |
|- |
||
| 0x40 || 0x10 || [[ |
| 0x40 || 0x10 || [[Vector4]] || mv4OuterColour || || |
||
|} |
|} |
||
Line 100: | Line 100: | ||
! Offset !! Length !! Type !! Name !! Description !! Comments |
! Offset !! Length !! Type !! Name !! Description !! Comments |
||
|- |
|- |
||
| 0x0 || 0x10 || [[ |
| 0x0 || 0x10 || [[Vector3]] || mv3SkyTopColour || || |
||
|- |
|- |
||
| 0x10 || 0x10 || [[ |
| 0x10 || 0x10 || [[Vector3]] || mv3SkyHorColour || || |
||
|- |
|- |
||
| 0x20 || 0x10 || [[ |
| 0x20 || 0x10 || [[Vector3]] || mv3SkySunColour || || |
||
|- |
|- |
||
| 0x30 || 0x4 || float32_t || mfSkyHorPow || || |
| 0x30 || 0x4 || float32_t || mfSkyHorPow || || |
||
Line 120: | Line 120: | ||
| 0x48 || 0x8 || || || padding || |
| 0x48 || 0x8 || || || padding || |
||
|- |
|- |
||
| 0x50 || 0x10 || [[ |
| 0x50 || 0x10 || [[Vector3]] || mv3ScattTopColour || || |
||
|- |
|- |
||
| 0x60 || 0x10 || [[ |
| 0x60 || 0x10 || [[Vector3]] || mv3ScattHorColour || || |
||
|- |
|- |
||
| 0x70 || 0x10 || [[ |
| 0x70 || 0x10 || [[Vector3]] || mv3ScattSunColour || || |
||
|- |
|- |
||
| 0x80 || 0x4 || float32_t || mfScattHorPow || || |
| 0x80 || 0x4 || float32_t || mfScattHorPow || || |
||
Line 151: | Line 151: | ||
! Offset !! Length !! Type !! Name !! Description !! Comments |
! Offset !! Length !! Type !! Name !! Description !! Comments |
||
|- |
|- |
||
| 0x0 || 0x10 || [[ |
| 0x0 || 0x10 || [[Vector3]] || mv3KeyLightColour || || |
||
|- |
|- |
||
| 0x10 || 0x10 || [[ |
| 0x10 || 0x10 || [[Vector3]] || mv3SpecularColour || || |
||
|- |
|- |
||
| 0x20 || 0x10 || [[ |
| 0x20 || 0x10 || [[Vector3]] || mv3KeyFillColour || || |
||
|- |
|- |
||
| 0x30 || 0x10 || [[ |
| 0x30 || 0x10 || [[Vector3]] || mv3ShadowFillColour || || |
||
|- |
|- |
||
| 0x40 || 0x10 || [[ |
| 0x40 || 0x10 || [[Vector3]] || mv3RightFillColour || || |
||
|- |
|- |
||
| 0x50 || 0x10 || [[ |
| 0x50 || 0x10 || [[Vector3]] || mv3LeftFillColour || || |
||
|- |
|- |
||
| 0x60 || 0x10 || [[ |
| 0x60 || 0x10 || [[Vector3]] || mv3UpFillColour || || |
||
|- |
|- |
||
| 0x70 || 0x10 || [[ |
| 0x70 || 0x10 || [[Vector3]] || mv3DownFillColour || || |
||
|- |
|- |
||
| 0x80 || 0x4 || float32_t || mfAmbientIrradianceScale || || |
| 0x80 || 0x4 || float32_t || mfAmbientIrradianceScale || || |
||
Line 176: | Line 176: | ||
! Offset !! Length !! Type !! Name !! Description !! Comments |
! Offset !! Length !! Type !! Name !! Description !! Comments |
||
|- |
|- |
||
| 0x0 || 0x20 || [[ |
| 0x0 || 0x20 || [[Vector3]][2] || mav3LayerLiteColour || || |
||
|- |
|- |
||
| 0x20 || 0x20 || [[ |
| 0x20 || 0x20 || [[Vector3]][2] || mav3LayerDarkColour || || |
||
|- |
|- |
||
| 0x40 || 0x8 || float32_t[2] || mafLayerDensity || || |
| 0x40 || 0x8 || float32_t[2] || mafLayerDensity || || |
Revision as of 23:13, 13 September 2022
Keyframe resources are the primary way to control the environment lighting and effects such as tint and bloom.
Structures
BrnWorld::EnvironmentSettings::Keyframe
32-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersion | 8 | |
0x4 | 0xC | padding | |||
0x10 | 0x20 | BloomData | mBloomData | ||
0x30 | 0x50 | VignetteData | mVignetteData | ||
0x80 | 0x4 | TintData | mTintData | ||
0x84 | 0xC | padding | |||
0x90 | 0xB0 | ScatteringData | mScatteringData | ||
0x140 | 0x90 | LightingData | mLightingData | ||
0x1D0 | 0x70 | CloudsData | mCloudsData |
64-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | uint32_t | muVersion | 8 | |
0x4 | 0xC | padding | |||
0x10 | 0x20 | BloomData | mBloomData | ||
0x30 | 0x50 | VignetteData | mVignetteData | ||
0x80 | 0x8 | TintData | mTintData | ||
0x88 | 0x8 | padding | |||
0x90 | 0xB0 | ScatteringData | mScatteringData | ||
0x140 | 0x90 | LightingData | mLightingData | ||
0x1D0 | 0x70 | CloudsData | mCloudsData |
BrnEffects::BloomData
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | float32_t | mfLuminance | ||
0x4 | 0x4 | float32_t | mfThreshold | ||
0x8 | 0x8 | padding | |||
0x10 | 0x10 | Vector4 | mv4Scale |
BrnEffects::VignetteData
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | float32_t | mfAngle | ||
0x4 | 0x4 | float32_t | mfSharpness | ||
0x8 | 0x8 | padding | |||
0x10 | 0x10 | Vector2 | mv2Amount | ||
0x20 | 0x10 | Vector2 | mv2Centre | ||
0x30 | 0x10 | Vector4 | mv4InnerColour | ||
0x40 | 0x10 | Vector4 | mv4OuterColour |
BrnEffects::TintData
32-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x4 | ColourCube* | mpColourCube |
64-bit
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x8 | ColourCube* | mpColourCube |
BrnWorld::EnvironmentSettings::ScatteringData
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x10 | Vector3 | mv3SkyTopColour | ||
0x10 | 0x10 | Vector3 | mv3SkyHorColour | ||
0x20 | 0x10 | Vector3 | mv3SkySunColour | ||
0x30 | 0x4 | float32_t | mfSkyHorPow | ||
0x34 | 0x4 | float32_t | mfSkySunPow | ||
0x38 | 0x4 | float32_t | mfSkyDrk | ||
0x3C | 0x4 | float32_t | mfSkyHorBleedScl | ||
0x40 | 0x4 | float32_t | mfSkyHorBleedPow | ||
0x44 | 0x4 | float32_t | mfSkySunBleedPow | ||
0x48 | 0x8 | padding | |||
0x50 | 0x10 | Vector3 | mv3ScattTopColour | ||
0x60 | 0x10 | Vector3 | mv3ScattHorColour | ||
0x70 | 0x10 | Vector3 | mv3ScattSunColour | ||
0x80 | 0x4 | float32_t | mfScattHorPow | ||
0x84 | 0x4 | float32_t | mfScattSunPow | ||
0x88 | 0x4 | float32_t | mfScattDrk | ||
0x8C | 0x4 | float32_t | mfScattHorBleedScl | ||
0x90 | 0x4 | float32_t | mfScattHorBleedPow | ||
0x94 | 0x4 | float32_t | mfScattSunBleedPow | ||
0x98 | 0x8 | float32_t[2] | mafScattDist | ||
0xA0 | 0x4 | float32_t | mfScattPow | ||
0xA4 | 0x4 | float32_t | mfScattCap | ||
0xA8 | 0x8 | padding |
BrnWorld::EnvironmentSettings::LightningData
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x10 | Vector3 | mv3KeyLightColour | ||
0x10 | 0x10 | Vector3 | mv3SpecularColour | ||
0x20 | 0x10 | Vector3 | mv3KeyFillColour | ||
0x30 | 0x10 | Vector3 | mv3ShadowFillColour | ||
0x40 | 0x10 | Vector3 | mv3RightFillColour | ||
0x50 | 0x10 | Vector3 | mv3LeftFillColour | ||
0x60 | 0x10 | Vector3 | mv3UpFillColour | ||
0x70 | 0x10 | Vector3 | mv3DownFillColour | ||
0x80 | 0x4 | float32_t | mfAmbientIrradianceScale | ||
0x84 | 0xC | padding |
BrnWorld::EnvironmentSettings::CloudsData
Offset | Length | Type | Name | Description | Comments |
---|---|---|---|---|---|
0x0 | 0x20 | Vector3[2] | mav3LayerLiteColour | ||
0x20 | 0x20 | Vector3[2] | mav3LayerDarkColour | ||
0x40 | 0x8 | float32_t[2] | mafLayerDensity | ||
0x48 | 0x8 | float32_t[2] | mafLayerFeathering | ||
0x50 | 0x8 | float32_t[2] | mafLayerOpacity | ||
0x58 | 0x8 | float32_t[2] | mafLayerSpeed | ||
0x60 | 0x8 | float32_t[2] | mafLayerScale | ||
0x68 | 0x4 | float32_t | mfDirectionAngle | ||
0x6C | 0x4 | padding |