Search Results for

    Show / Hide Table of Contents

    Class AutoExposure

    Updates the exposure each frame adapt it to frame luminance average.

    Inheritance
    object
    AutoExposure
    Namespace: Evergine.Framework.Graphics
    Assembly: Evergine.Framework.dll
    Syntax
    public class AutoExposure

    Constructors

    AutoExposure()

    Initializes a new instance of the AutoExposure class.

    Declaration
    public AutoExposure()

    Fields

    ComputeCommandQueue

    Command Queue.

    Declaration
    protected CommandQueue ComputeCommandQueue
    Field Value
    Type Description
    CommandQueue

    GenerateHistogram

    Generates the luminance histogram of a image.

    Declaration
    protected Histogram GenerateHistogram
    Field Value
    Type Description
    Histogram

    HistogramZeroValues

    Used to reset the histogram buffer.

    Declaration
    protected uint[] HistogramZeroValues
    Field Value
    Type Description
    uint[]

    LogLuminanceRange

    Gets or sets the logarithm luminance range (Default 12.0f).

    Declaration
    public float LogLuminanceRange
    Field Value
    Type Description
    float

    LuminanceAverage

    Get luminance average from luminance histogram.

    Declaration
    protected LuminanceAvg LuminanceAverage
    Field Value
    Type Description
    LuminanceAvg

    LuminanceAvgBuffer

    Buffer with luminance average value. (size 1 float).

    Declaration
    protected Buffer LuminanceAvgBuffer
    Field Value
    Type Description
    Buffer

    LuminanceHistogramBuffer

    Buffer with luminance histogram (size 256 uint).

    Declaration
    protected Buffer LuminanceHistogramBuffer
    Field Value
    Type Description
    Buffer

    MinLogLuminance

    Gets or sets the minimum logarithm luminance (Default -10).

    Declaration
    public float MinLogLuminance
    Field Value
    Type Description
    float

    StagingLuminanceAvgBuffer

    Staging buffer to read the luminance avg value.

    Declaration
    protected Buffer StagingLuminanceAvgBuffer
    Field Value
    Type Description
    Buffer

    TAU

    Gets or sets the TAU (Default 1.1).

    Declaration
    public float TAU
    Field Value
    Type Description
    float

    TimeDelta

    Gets or sets the Time delta with the before frame (Default 1/60).

    Declaration
    public float TimeDelta
    Field Value
    Type Description
    float

    Methods

    Dispose()

    Dispose all reserved resources.

    Declaration
    public void Dispose()

    ProcessFrame(Texture, Camera, float)

    Process and return the luminance average of the frame.

    Declaration
    public void ProcessFrame(Texture frame, Camera camera, float timeDelta)
    Parameters
    Type Name Description
    Texture frame

    Current frame.

    Camera camera

    Current camera.

    float timeDelta

    Delta time from before frame.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX