Class HableCurve
An implementation of Hable's artist-friendly tonemapping curve. http://filmicworlds.com/blog/filmic-tonemapping-with-piecewise-power-curves/
Inherited Members
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
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 |
Returns
Type | Description |
---|---|
float |
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. |