docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class HableCurve

    An implementation of Hable's artist-friendly tonemapping curve. http://filmicworlds.com/blog/filmic-tonemapping-with-piecewise-power-curves/

    Inheritance
    object
    HableCurve
    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.Runtime.dll
    Syntax
    public class HableCurve

    Constructors

    HableCurve()

    Creates a new curve.

    Declaration
    public HableCurve()

    Fields

    segments

    The three segments of the curve.

    Declaration
    public readonly HableCurve.Segment[] segments
    Field Value
    Type Description
    Segment[]

    uniforms

    An instance of the HableCurve.Uniforms utility class for this curve.

    Declaration
    public readonly HableCurve.Uniforms uniforms
    Field Value
    Type Description
    HableCurve.Uniforms

    Properties

    inverseWhitePoint

    The inverse of the white point.

    Declaration
    public float inverseWhitePoint { get; }
    Property Value
    Type Description
    float
    See Also
    whitePoint

    whitePoint

    The white point.

    Declaration
    public float whitePoint { get; }
    Property Value
    Type Description
    float

    x0

    The start of the linear section (middle segment of the curve).

    Declaration
    public float x0 { get; }
    Property Value
    Type Description
    float

    x1

    The end of the linear section (middle segment of the curve).

    Declaration
    public float x1 { get; }
    Property Value
    Type Description
    float

    Methods

    Eval(float)

    Evaluates a point on the curve.

    Declaration
    public float Eval(float x)
    Parameters
    Type Name Description
    float x

    The x-coordinate at which to evaluate the curve.

    Returns
    Type Description
    float

    The y-coordinate (value) of the curve at the specified x-coordinate.

    Init(float, float, float, float, float, float)

    Initializes the curve.

    Declaration
    public void Init(float toeStrength, float toeLength, float shoulderStrength, float shoulderLength, float shoulderAngle, float gamma)
    Parameters
    Type Name Description
    float toeStrength

    The strength of the transition between the curve's toe and the curve's mid-section. A value of 0 results in no transition and a value of 1 results in a very hard transition.

    float toeLength

    The length of the curve's toe. Higher values result in longer toes and therefore contain more of the dynamic range.

    float shoulderStrength

    The strength of the transition between the curve's midsection and the curve's shoulder. A value of 0 results in no transition and a value of 1 results in a very hard transition.

    float shoulderLength

    The amount of f-stops to add to the dynamic range of the curve. This is how much of the highlights that the curve takes into account.

    float shoulderAngle

    How much overshoot to add to the curve's shoulder.

    float gamma

    A gamma correction to the entire curve.

    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, 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)