Struct TonemapSettings
- Namespace
- ValveResourceFormat.Renderer
- Assembly
- Renderer.dll
Filmic tonemapping curve parameters for HDR-to-LDR conversion.
public readonly struct TonemapSettingsInherited Members
Constructors
TonemapSettings()
public TonemapSettings()TonemapSettings(KVObject)
public TonemapSettings(KVObject tonemapParams)Parameters
tonemapParamsKVObject
Properties
ExposureBias
public float ExposureBias { get; init; }Property Value
LinearAngle
public float LinearAngle { get; init; }Property Value
LinearStrength
public float LinearStrength { get; init; }Property Value
ShoulderStrength
public float ShoulderStrength { get; init; }Property Value
ToeDenom
public float ToeDenom { get; init; }Property Value
ToeNum
public float ToeNum { get; init; }Property Value
ToeStrength
public float ToeStrength { get; init; }Property Value
WhitePoint
public float WhitePoint { get; init; }Property Value
Methods
ApplyTonemapping(float)
CPU version of the Uncharted 2 tonemapper (the tonemapping S2 uses) used to calculate White Point
public float ApplyTonemapping(float inputValue)Parameters
inputValuefloat
Returns
BlendTonemapSettings(float, TonemapSettings, TonemapSettings)
Lerp between two tonemap settings based on a weight
public static TonemapSettings BlendTonemapSettings(float weight, TonemapSettings TonemapSettings1, TonemapSettings TonemapSettings2)Parameters
weightfloatTonemapSettings1TonemapSettingsTonemapSettings2TonemapSettings
Returns
Linear()
public static TonemapSettings Linear()