Class AdaptiveProbeVolumes.LightingBaker
Lighting baker
Implements
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public abstract class AdaptiveProbeVolumes.LightingBaker : IDisposable
Properties
cancel
Set to true when the main thread cancels baking.
Declaration
public static bool cancel { get; }
Property Value
Type | Description |
---|---|
bool |
currentStep
The current baking step.
Declaration
public abstract ulong currentStep { get; }
Property Value
Type | Description |
---|---|
ulong |
irradiance
Array storing the probe lighting as Spherical Harmonics.
Declaration
public abstract NativeArray<SphericalHarmonicsL2> irradiance { get; }
Property Value
Type | Description |
---|---|
Native |
isThreadSafe
Indicates that the Step method can be safely called from a thread.
Declaration
public virtual bool isThreadSafe { get; }
Property Value
Type | Description |
---|---|
bool |
occlusion
Array storing 4 light occlusion values for each probe.
Declaration
public abstract NativeArray<Vector4> occlusion { get; }
Property Value
Type | Description |
---|---|
Native |
stepCount
The total amount of step.
Declaration
public abstract ulong stepCount { get; }
Property Value
Type | Description |
---|---|
ulong |
validity
Array storing the probe validity. A value of 1 means a probe is invalid.
Declaration
public abstract NativeArray<float> validity { get; }
Property Value
Type | Description |
---|---|
Native |
Methods
Dispose()
Performs necessary tasks to free allocated resources.
Declaration
public abstract void Dispose()
Initialize(bool, NativeArray<Vector3>)
This is called before the start of baking to allow allocating necessary resources.
Declaration
public abstract void Initialize(bool bakeProbeOcclusion, NativeArray<Vector3> probePositions)
Parameters
Type | Name | Description |
---|---|---|
bool | bakeProbeOcclusion | Whether to bake occlusion for mixed lights for each probe. |
Native |
probePositions | The probe positions. Also contains reflection probe positions used for normalization. |
Initialize(bool, NativeArray<Vector3>, NativeArray<uint>)
This is called before the start of baking to allow allocating necessary resources.
Declaration
public abstract void Initialize(bool bakeProbeOcclusion, NativeArray<Vector3> probePositions, NativeArray<uint> bakedRenderingLayerMasks)
Parameters
Type | Name | Description |
---|---|---|
bool | bakeProbeOcclusion | Whether to bake occlusion for mixed lights for each probe. |
Native |
probePositions | The probe positions. Also contains reflection probe positions used for normalization. |
Native |
bakedRenderingLayerMasks | The rendering layer masks assigned to each probe. It is used when fixing seams between subdivision levels |
Step()
Run a step of light baking. Baking is considered done when currentStep property equals stepCount. If isThreadSafe is true, this method may be called from a different thread.
Declaration
public abstract bool Step()
Returns
Type | Description |
---|---|
bool | Return false if bake failed and should be stopped. |