Component:AmbientLightSH2: Difference between revisions

From Resonite Wiki
Automated: update SyncDelegates
add info
 
Line 3: Line 3:
|Name=Ambient Light SH2
|Name=Ambient Light SH2
}}
}}
The '''Ambient Light SH2''' component
The '''Ambient Light SH2''' component creates ambient lighting data that creates global colored light using sampling from a Level 2 Spherical Harmonic type ColorX.
{{stub}}


== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|AmbientLight|'''[[Type:SphericalHarmonicsL2`1|SphericalHarmonicsL2`1]]<[[Type:ColorX|ColorX]]>'''|TypeAdv0=true|
|AmbientLight|'''[[Type:SphericalHarmonicsL2`1|SphericalHarmonicsL2`1]]<[[Type:ColorX|ColorX]]>'''|TypeAdv0=true| The spherical harmonic to sample for ambient lighting.
}}
}}


== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|SetActive:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|SetActive:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Make this ambient lighting component the current world ambient light.
}}
}}


Line 24: Line 23:
[[Category:Components:Rendering{{#translation:}}|Ambient Light SH2]]
[[Category:Components:Rendering{{#translation:}}|Ambient Light SH2]]
[[Category:Components{{#translation:}}|Ambient Light SH2]]
[[Category:Components{{#translation:}}|Ambient Light SH2]]
[[Category:ComponentStubs]]

Latest revision as of 19:10, 5 April 2025

Component image 
Ambient Light SH2 component as seen in the Scene Inspector

The Ambient Light SH2 component creates ambient lighting data that creates global colored light using sampling from a Level 2 Spherical Harmonic type ColorX.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
AmbientLight SphericalHarmonicsL2`1<ColorX> The spherical harmonic to sample for ambient lighting.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
SetActive:ButtonEventHandler ButtonEventHandler Make this ambient lighting component the current world ambient light.

Usage

Examples

See Also