docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AdaptiveProbeVolumes.SkyOcclusionBaker

    Sky occlusion baker

    Inheritance
    object
    AdaptiveProbeVolumes.SkyOcclusionBaker
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Implements

    IDisposable

    Extension Methods

    ReflectionUtils.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)