Generic

actual class Generic(contrast: Float, midGrayIn: Float, midGrayOut: Float, hdrMax: Float) : ToneMapper

Generic tone mapping operator that gives control over the tone mapping curve.

This operator can be used to control the aesthetics of the final image. It also allows control over the dynamic range of the scene-referred values.

The tone mapping curve is defined by 5 parameters:

  • contrast: controls the contrast of the curve

  • midGrayIn: sets the input middle gray

  • midGrayOut: sets the output middle gray

  • hdrMax: defines the maximum input value that will be mapped to output white

The default values approximate an ACES tone mapping curve with a maximum input value of 10.0.

Parameters

contrast

Controls the contrast of the curve. Must be > 0.0, values in the range 0.5..2.0 are recommended. Default is 1.55.

midGrayIn

Sets the input middle gray, between 0.0 and 1.0. Default is 0.18.

midGrayOut

Sets the output middle gray, between 0.0 and 1.0. Default is 0.215.

hdrMax

Defines the maximum input value that will be mapped to output white. Must be >= 1.0. Default is 10.0.

expect class Generic(contrast: Float = 1.55f, midGrayIn: Float = 0.18f, midGrayOut: Float = 0.215f, hdrMax: Float = 10.0f) : ToneMapper

Generic tone mapping operator that gives control over the tone mapping curve.

This operator can be used to control the aesthetics of the final image. It also allows control over the dynamic range of the scene-referred values.

The tone mapping curve is defined by 5 parameters:

  • contrast: controls the contrast of the curve

  • midGrayIn: sets the input middle gray

  • midGrayOut: sets the output middle gray

  • hdrMax: defines the maximum input value that will be mapped to output white

The default values approximate an ACES tone mapping curve with a maximum input value of 10.0.

Parameters

contrast

Controls the contrast of the curve. Must be > 0.0, values in the range 0.5..2.0 are recommended. Default is 1.55.

midGrayIn

Sets the input middle gray, between 0.0 and 1.0. Default is 0.18.

midGrayOut

Sets the output middle gray, between 0.0 and 1.0. Default is 0.215.

hdrMax

Defines the maximum input value that will be mapped to output white. Must be >= 1.0. Default is 10.0.

actual class Generic(contrast: Float, midGrayIn: Float, midGrayOut: Float, hdrMax: Float) : ToneMapper

Generic tone mapping operator that gives control over the tone mapping curve.

This operator can be used to control the aesthetics of the final image. It also allows control over the dynamic range of the scene-referred values.

The tone mapping curve is defined by 5 parameters:

  • contrast: controls the contrast of the curve

  • midGrayIn: sets the input middle gray

  • midGrayOut: sets the output middle gray

  • hdrMax: defines the maximum input value that will be mapped to output white

The default values approximate an ACES tone mapping curve with a maximum input value of 10.0.

Parameters

contrast

Controls the contrast of the curve. Must be > 0.0, values in the range 0.5..2.0 are recommended. Default is 1.55.

midGrayIn

Sets the input middle gray, between 0.0 and 1.0. Default is 0.18.

midGrayOut

Sets the output middle gray, between 0.0 and 1.0. Default is 0.215.

hdrMax

Defines the maximum input value that will be mapped to output white. Must be >= 1.0. Default is 10.0.

actual class Generic(contrast: Float, midGrayIn: Float, midGrayOut: Float, hdrMax: Float) : ToneMapper

Generic tone mapping operator that gives control over the tone mapping curve.

This operator can be used to control the aesthetics of the final image. It also allows control over the dynamic range of the scene-referred values.

The tone mapping curve is defined by 5 parameters:

  • contrast: controls the contrast of the curve

  • midGrayIn: sets the input middle gray

  • midGrayOut: sets the output middle gray

  • hdrMax: defines the maximum input value that will be mapped to output white

The default values approximate an ACES tone mapping curve with a maximum input value of 10.0.

Parameters

contrast

Controls the contrast of the curve. Must be > 0.0, values in the range 0.5..2.0 are recommended. Default is 1.55.

midGrayIn

Sets the input middle gray, between 0.0 and 1.0. Default is 0.18.

midGrayOut

Sets the output middle gray, between 0.0 and 1.0. Default is 0.215.

hdrMax

Defines the maximum input value that will be mapped to output white. Must be >= 1.0. Default is 10.0.

actual class Generic(contrast: Float, midGrayIn: Float, midGrayOut: Float, hdrMax: Float) : ToneMapper

Generic tone mapping operator that gives control over the tone mapping curve.

This operator can be used to control the aesthetics of the final image. It also allows control over the dynamic range of the scene-referred values.

The tone mapping curve is defined by 5 parameters:

  • contrast: controls the contrast of the curve

  • midGrayIn: sets the input middle gray

  • midGrayOut: sets the output middle gray

  • hdrMax: defines the maximum input value that will be mapped to output white

The default values approximate an ACES tone mapping curve with a maximum input value of 10.0.

Parameters

contrast

Controls the contrast of the curve. Must be > 0.0, values in the range 0.5..2.0 are recommended. Default is 1.55.

midGrayIn

Sets the input middle gray, between 0.0 and 1.0. Default is 0.18.

midGrayOut

Sets the output middle gray, between 0.0 and 1.0. Default is 0.215.

hdrMax

Defines the maximum input value that will be mapped to output white. Must be >= 1.0. Default is 10.0.

Constructors

Link copied to clipboard
actual constructor(contrast: Float, midGrayIn: Float, midGrayOut: Float, hdrMax: Float)
expect constructor(contrast: Float = 1.55f, midGrayIn: Float = 0.18f, midGrayOut: Float = 0.215f, hdrMax: Float = 10.0f)
actual constructor(contrast: Float, midGrayIn: Float, midGrayOut: Float, hdrMax: Float)
actual constructor(contrast: Float, midGrayIn: Float, midGrayOut: Float, hdrMax: Float)
actual constructor(contrast: Float, midGrayIn: Float, midGrayOut: Float, hdrMax: Float)

Properties

Link copied to clipboard
actual var contrast: Float

Controls the contrast of the curve. Must be > 0.0, values in 0.5..2.0 recommended.

expect var contrast: Float

Controls the contrast of the curve. Must be > 0.0, values in 0.5..2.0 recommended.

actual var contrast: Float

Controls the contrast of the curve. Must be > 0.0, values in 0.5..2.0 recommended.

actual var contrast: Float

Controls the contrast of the curve. Must be > 0.0, values in 0.5..2.0 recommended.

actual var contrast: Float

Controls the contrast of the curve. Must be > 0.0, values in 0.5..2.0 recommended.

Link copied to clipboard
actual var hdrMax: Float

Defines the maximum input value that maps to output white. Must be >= 1.0.

expect var hdrMax: Float

Defines the maximum input value that maps to output white. Must be >= 1.0.

actual var hdrMax: Float

Defines the maximum input value that maps to output white. Must be >= 1.0.

actual var hdrMax: Float

Defines the maximum input value that maps to output white. Must be >= 1.0.

actual var hdrMax: Float

Defines the maximum input value that maps to output white. Must be >= 1.0.

Link copied to clipboard
actual var midGrayIn: Float

Sets the input middle gray, between 0.0 and 1.0.

expect var midGrayIn: Float

Sets the input middle gray, between 0.0 and 1.0.

actual var midGrayIn: Float

Sets the input middle gray, between 0.0 and 1.0.

actual var midGrayIn: Float

Sets the input middle gray, between 0.0 and 1.0.

actual var midGrayIn: Float

Sets the input middle gray, between 0.0 and 1.0.

Link copied to clipboard
actual var midGrayOut: Float

Sets the output middle gray, between 0.0 and 1.0.

expect var midGrayOut: Float

Sets the output middle gray, between 0.0 and 1.0.

actual var midGrayOut: Float

Sets the output middle gray, between 0.0 and 1.0.

actual var midGrayOut: Float

Sets the output middle gray, between 0.0 and 1.0.

actual var midGrayOut: Float

Sets the output middle gray, between 0.0 and 1.0.