Class HableCurve.Segment
Individual curve segment.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public class HableCurve.Segment
Fields
B
B
constant in the power curve y = e^(ln(A) + B*ln(x))
.
Declaration
public float B
Field Value
Type | Description |
---|---|
float |
lnA
ln(A)
constant in the power curve y = e^(ln(A) + B*ln(x))
.
Declaration
public float lnA
Field Value
Type | Description |
---|---|
float |
offsetX
The offset of the segment on the X axis.
Declaration
public float offsetX
Field Value
Type | Description |
---|---|
float |
offsetY
The offset of the segment on the Y axis.
Declaration
public float offsetY
Field Value
Type | Description |
---|---|
float |
scaleX
The scale of the segment on the X axis.
Declaration
public float scaleX
Field Value
Type | Description |
---|---|
float |
scaleY
The scale of the segment on the Y axis.
Declaration
public float scaleY
Field Value
Type | Description |
---|---|
float |
Methods
Eval(float)
Evaluate a point on the curve.
Declaration
public float Eval(float x)
Parameters
Type | Name | Description |
---|---|---|
float | x | The point to evaluate. |
Returns
Type | Description |
---|---|
float | The value of the curve, at the point specified. |