Table of Contents

Struct TonemapSettings

Namespace
ValveResourceFormat.Renderer
Assembly
Renderer.dll

Filmic tonemapping curve parameters for HDR-to-LDR conversion.

public readonly struct TonemapSettings

Inherited Members

Constructors

TonemapSettings()

public TonemapSettings()

TonemapSettings(KVObject)

public TonemapSettings(KVObject tonemapParams)

Parameters

tonemapParams KVObject

Properties

ExposureBias

public float ExposureBias { get; init; }

Property Value

float

LinearAngle

public float LinearAngle { get; init; }

Property Value

float

LinearStrength

public float LinearStrength { get; init; }

Property Value

float

ShoulderStrength

public float ShoulderStrength { get; init; }

Property Value

float

ToeDenom

public float ToeDenom { get; init; }

Property Value

float

ToeNum

public float ToeNum { get; init; }

Property Value

float

ToeStrength

public float ToeStrength { get; init; }

Property Value

float

WhitePoint

public float WhitePoint { get; init; }

Property Value

float

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

inputValue float

Returns

float

BlendTonemapSettings(float, TonemapSettings, TonemapSettings)

Lerp between two tonemap settings based on a weight

public static TonemapSettings BlendTonemapSettings(float weight, TonemapSettings TonemapSettings1, TonemapSettings TonemapSettings2)

Parameters

weight float
TonemapSettings1 TonemapSettings
TonemapSettings2 TonemapSettings

Returns

TonemapSettings

Linear()

public static TonemapSettings Linear()

Returns

TonemapSettings