Lights (Metroid Prime): Difference between revisions

>Aruki
No edit summary
>Aruki
 
(2 intermediate revisions by the same user not shown)
Line 26: Line 26:
| 0x4
| 0x4
| float3
| float3
| '''Light Color'''
| '''Color'''
| There is no alpha component.
| There is no alpha component.
|-
|-
Line 41: Line 41:
| 0x28
| 0x28
| float
| float
| '''Multiplier'''
| '''Brightness'''
| Color multiplier for local ambient, used to calculate attenuation coefficients for spot/custom
| Multiplied by color for local ambient, used to calculate distance attenuation coefficients for spot/custom
|-
|-
| 0x2C
| 0x2C
| float
| float
| '''Spot Cutoff'''
| '''Spot Cutoff'''
|  
| Used to calculate angle attenuation coefficients for spotlights
|-
|-
| 0x30
| 0x30
Line 95: Line 95:
| 0x4
| 0x4
| float4
| float4
| '''Light Color'''
| '''Color'''
| This color ''does'' have an alpha component, unlike Prime 1 lights.
| This color ''does'' have an alpha component, unlike Prime 1 lights.
|-
|-
Line 115: Line 115:
| 0x38
| 0x38
| float
| float
| '''Multiplier'''
| '''Brightness'''
| Color multiplier for local ambient, used to calculate attenuation coefficients for spot/custom
| Multiplied by color for local ambient, used to calculate distance attenuation coefficients for spot/custom
|-
|-
| 0x3C
| 0x3C
| float
| float
| '''Spot Cutoff'''
| '''Spot Cutoff'''
|  
| Used to calculate angle attenuation coefficients for spotlights
|-
|-
| 0x40
| 0x40
Line 140: Line 140:
| 0x49
| 0x49
| u32
| u32
| Falloff Type
| '''Falloff Type'''
|  
|  
|-
|-
Line 222: Line 222:
Each falloff type will set one distance attenuation coefficient, with the other two set to 0. For each type:
Each falloff type will set one distance attenuation coefficient, with the other two set to 0. For each type:


* 0: '''Constant''': Coefficient A is set to <code>2.0 / Multiplier</code>
* 0: '''Constant''': Coefficient A is set to <code>2.0 / Brightness</code>
* 1: '''Linear''': Coefficient B is set to <code>250 / Multiplier</code>
* 1: '''Linear''': Coefficient B is set to <code>250 / Brightness</code>
* 2: '''Quadratic''': Coefficient C is set to <code>25000 / Multiplier</code>
* 2: '''Quadratic''': Coefficient C is set to <code>25000 / Brightness</code>


[[Category:File Formats]]
[[Category:File Formats]]
[[Category:Metroid Prime]]
[[Category:Metroid Prime]]
[[Category:Metroid Prime 2: Echoes]]
[[Category:Metroid Prime 2: Echoes]]
Anonymous user