(3 intermediate revisions by the same user not shown)
Line 3:
Line 3:
|Name=Reflection Probe
|Name=Reflection Probe
}}
}}
{{stub}}
A reflection probe component is used to make points in space that makes reflective surfaces within a box around the point show a different reflection map than the skybox. This is useful for controlling the lighting and look of a scene.
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|ProbeType|'''[[#Type|Type]]'''|TypeAdv0=true|
|ProbeType|'''[[#Type|Type]]'''|TypeAdv0=true| What mode this reflection probe uses.
|Importance|Int|
|Importance|Int| How much priority this probe takes over another probe when two probes overlap
|Intensity|Float|
|Intensity|Float| how strong or bright the reflection is
|BlendDistance|Float|
|BlendDistance|Float| how far the probe will slowly take over the reflection map of objects as an object goes towards the center of influence
|BoxSize|Float3|
|BoxSize|Float3| the area that this reflection probe will affect the reflection maps of objects
|BoxProjection|Bool|
|BoxProjection|Bool| project the reflection map in a box shape from the reflection probe rather than a sphere.
|BakedCubemap|{{RootFieldType|AssetRef`1|[[Type:Cubemap|Cubemap]]}}|TypeAdv6=true| The cube map to replace the refection maps of reflective objects with in the influence area of this reflection probe
|_debugVisual|{{RootFieldType|SlotCleanupRef`1|[[Type:Slot|Slot]]}}|TypeAdv16=true| The current debug visual that this reflection probe is showing, if applicable.
}}
}}
== Sync Delegates ==
{{Table ComponentTriggers
|Bake()|[[Type:Action|Action]]|
}}
== Type ==
An [[:Category:Enums|Enum]] of "Realtime" or "Baked" realtime renders a new cube map outwards from the center of the probe every second while baked will use the provided <code>BakedCubemap</code>
== Clear ==
An [[:Category:Enums|Enum]] of "Skybox" or "Color". Color backs the transparent parts of the reflection map with <code>BackgroundColor</code> due to far or near clipping with realtime, or transparent pixels in the provided <code>BakedCubemap</code>. Skybox when selected will instead back transparent parts with the Skybox of the world.
A reflection probe component is used to make points in space that makes reflective surfaces within a box around the point show a different reflection map than the skybox. This is useful for controlling the lighting and look of a scene.
An Enum of "Realtime" or "Baked" realtime renders a new cube map outwards from the center of the probe every second while baked will use the provided BakedCubemap
Clear
An Enum of "Skybox" or "Color". Color backs the transparent parts of the reflection map with BackgroundColor due to far or near clipping with realtime, or transparent pixels in the provided BakedCubemap. Skybox when selected will instead back transparent parts with the Skybox of the world.