Component:ReflectionProbe: Difference between revisions

From Resonite Wiki
Automated: update Categories, SyncDelegates
Automated: update Replace
Line 46: Line 46:
[[Category:Components{{#translation:}}|Reflection Probe]]
[[Category:Components{{#translation:}}|Reflection Probe]]
[[Category:Components With Nested Enums{{#translation:}}|Reflection Probe]]
[[Category:Components With Nested Enums{{#translation:}}|Reflection Probe]]
[[Category:ComponentStub]]
[[Category:ComponentStubs]]
[[Category:ComponentStubs]]
[[Category:ComponentStubs]]

Revision as of 21:06, 6 November 2024

Component image 
Reflection Probe component as seen in the Scene Inspector

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

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.
ProbeType Type What mode this reflection probe uses.
Importance Int How much priority this probe takes over another probe when two probes overlap
Intensity Float how strong or bright the reflection is
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 the area that this reflection probe will affect the reflection maps of objects
BoxProjection Bool project the reflection map in a box shape from the reflection probe rather than a sphere.
BakedCubemap Cubemap The cube map to replace the refection maps of reflective objects with in the influence area of this reflection probe
TimeSlicing TimeSlicingMode
Resolution Int the forced resolution of the reflection map from this reflection probe shown in the reflections of shiny objects.
HDR Bool
ShadowDistance Float how far to render shadows from the reflection probe
ClearFlags Clear Whether to use the skybox or color when backing transparent pixels
BackgroundColor ColorX The color to clear with when ClearFlags is set to "Color"
NearClip Float The closest distance to render from the reflection probe center when using "Realtime" on ProbeType
FarClip Float The furthest distance to render from the reflection probe center when using "Realtime" on ProbeType
ShowDebugVisuals Bool Shows the box influence area and the center point of this reflection probe
_debugVisual direct SlotCleanupRef`1<Slot> The current debug visual that this reflection probe is showing, if applicable.

Sync Delegates

Triggers
Method Name Method type and Arguments. Description
Bake() Action

Type

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.

Behavior

Examples

See Also