Class AdaptiveProbeVolumes.SkyOcclusionBaker
Sky occlusion baker
Implements
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public abstract class AdaptiveProbeVolumes.SkyOcclusionBaker : IDisposable
Properties
currentStep
The current baking step.
Declaration
public abstract ulong currentStep { get; }
Property Value
Type | Description |
---|---|
ulong |
occlusion
Array storing the sky occlusion per probe. Expects Layout DC, x, y, z.
Declaration
public abstract NativeArray<Vector4> occlusion { get; }
Property Value
Type | Description |
---|---|
NativeArray<Vector4> |
shadingDirections
Array storing the sky shading direction per probe.
Declaration
public abstract NativeArray<Vector3> shadingDirections { get; }
Property Value
Type | Description |
---|---|
NativeArray<Vector3> |
stepCount
The total amount of step.
Declaration
public abstract ulong stepCount { get; }
Property Value
Type | Description |
---|---|
ulong |
Methods
Dispose()
Performs necessary tasks to free allocated resources.
Declaration
public abstract void Dispose()
Initialize(ProbeVolumeBakingSet, NativeArray<Vector3>)
This is called before the start of baking to allow allocating necessary resources.
Declaration
public abstract void Initialize(ProbeVolumeBakingSet bakingSet, NativeArray<Vector3> probePositions)
Parameters
Type | Name | Description |
---|---|---|
ProbeVolumeBakingSet | bakingSet | The baking set that is currently baked. |
NativeArray<Vector3> | probePositions | The probe positions. |
Step()
Run a step of sky occlusion baking. Baking is considered done when currentStep property equals stepCount.
Declaration
public abstract bool Step()
Returns
Type | Description |
---|---|
bool | Return false if bake failed and should be stopped. |