Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LightProbeProxyVolume

The Light Probe Proxy Volume component offers the possibility to use higher resolution lighting for large non-static GameObjects.
Read time 8 minutesLast updated 2 days ago

Definition

Warning
Deprecated. The Light Probe Proxy Volume component is deprecated now that the Built-In Render Pipeline is deprecated. To use an alternative, refer to the documentation in the component help icon. #from(6000.5)
public sealed class LightProbeProxyVolume : Behaviour

Remarks

By default, a probe-lit Renderer receives lighting from a single Light Probe that is interpolated from the surrounding Light Probes in the Scene. Because of this, GameObjects have constant ambient lighting regardless of their position on the surface. The light has have a rotational gradient because it's using spherical harmonics, but it lacks a spatial gradient. This is more noticeable on larger GameObjects and Particle Systems. The lighting across the GameObject matches the lighting at the anchor point, and if the GameObject straddles a lighting gradient, parts of the GameObject will look incorrect.
This component will generate a 3D grid of interpolated Light Probes inside a bounding volume. The resolution of the grid can be user-specified. The spherical harmonics coefficients of the interpolated Light Probes are updated into 3D textures, which are sampled at render time to compute the contribution to the diffuse ambient lighting. This adds a spatial gradient to probe-lit GameObjects.
Additional Resources: Light Probes.

Properties

Property

Description

boundingBoxModeThe bounding box mode for generating the 3D grid of interpolated Light Probes.
boundsGlobalThe world-space bounding box in which the 3D grid of interpolated Light Probes is generated.
dataFormatThe texture data format used by the Light Probe Proxy Volume 3D texture.
gridResolutionXThe 3D grid resolution on the x-axis.
gridResolutionYThe 3D grid resolution on the y-axis.
gridResolutionZThe 3D grid resolution on the z-axis.
originCustomThe local-space origin of the bounding box in which the 3D grid of interpolated Light Probes is generated.
probeDensityInterpolated Light Probe density.
probePositionModeThe mode in which the interpolated Light Probe positions are generated.
qualityModeDetermines how many Spherical Harmonics bands will be evaluated to compute the ambient color.
refreshModeSets the way the Light Probe Proxy Volume refreshes.
resolutionModeThe resolution mode for generating the grid of interpolated Light Probes.
sizeCustomThe size of the bounding box in which the 3D grid of interpolated Light Probes is generated.

Static Properties

Property

Description

isFeatureSupportedChecks if Light Probe Proxy Volumes are supported.

Methods

Method

Description

UpdateTriggers an update of the Light Probe Proxy Volume.

Enums

Enum

Description

LightProbeProxyVolume.BoundingBoxModeThe bounding box mode for generating a grid of interpolated Light Probes.
LightProbeProxyVolume.DataFormatThe texture data format used by the Light Probe Proxy Volume 3D texture.
LightProbeProxyVolume.ProbePositionModeThe mode in which the interpolated Light Probe positions are generated.
LightProbeProxyVolume.QualityModeAn enum describing the Quality option used by the Light Probe Proxy Volume component.
LightProbeProxyVolume.RefreshModeAn enum that describes how Unity refreshes a Light Probe Proxy Volume in the Player.
LightProbeProxyVolume.ResolutionModeThe resolution mode for generating a grid of interpolated Light Probes.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.