LightProbeProxyVolume

class in UnityEngine

/

Hereda de:Behaviour

Cambiar al Manual

Descripción

The Light Probe Proxy Volume component offers the possibility to use higher resolution lighting for large non-static GameObjects.

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.

See Also: Light Probes.

Variables Estáticas

isFeatureSupportedChecks if Light Probe Proxy Volumes are supported.

Variables

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.
gridResolutionXThe 3D grid resolution on the z-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.

Funciones Públicas

UpdateTriggers an update of the Light Probe Proxy Volume.

Miembros heredados

Variables

enabledEnabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabledHas the Behaviour had active and enabled called?
gameObjectEl game object que tiene este componente adjunto. Un componente siempre está adjunto a un game object.
tagEl tag de este game object.
transformThe Transform attached to this GameObject.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameEl nombre del objeto.

Funciones Públicas

BroadcastMessageLlama al método denominado methodName de todos los MonoBehaviour en este game objecto en cualquiera de sus hijos.
CompareTag¿Este game object está etiquetado con tag?
GetComponentDevuelve un componente de tipo type si el game object tiene a alguno adjuntado, o null si no lo tiene.
GetComponentInChildrenRetorna el componente de tipo type en el GameObject o cualquiera de sus hijos utilizando depth first search (busqueda de profundidad).
GetComponentInParentRetorna el componente de tipo type en el GameObject o cualquiera de sus padres.
GetComponentsRetorna todos los componentes de tipo type en el GameObject.
GetComponentsInChildrenRetorna todos los componentes de tipo type en el GameObject o cualquiera de sus hijo.
GetComponentsInParentRetorna todos los componentes de tipo type en el GameObject o cualquiera de sus padres.
SendMessageLlama al método denominado methodName en cada MonoBehaviour de este game object.
SendMessageUpwardsLlama al método denominado methodName en todos los MonoBehaviour de este juego y en todos los ancestros del behaviour.
GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringReturns the name of the GameObject.

Funciones Estáticas

DestroyElimina un gameobject, componente o asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateClona el objeto original y devuelve el clon.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.