Class AdaptiveProbeVolumes.VirtualOffsetBaker
Virtual offset baker. This API allows implementing custom virtual offset baking strategies. Virtual offsets are used to offset probe positions away from geometry to avoid light leaking.
Implements
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public abstract class AdaptiveProbeVolumes.VirtualOffsetBaker : IDisposable
Properties
currentStep
The current baking step.
Declaration
public abstract ulong currentStep { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
offsets
Array storing the resulting virtual offsets to be applied to probe positions.
Declaration
public abstract NativeArray<Vector3> offsets { 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 virtual offset 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. |