range

Class

Shader

Output

RGB

synopsis
Remap input from the [input min, input max] range to the [ouput min, output max] range linearly. The result is not clamped unless smoothstep is on, and the result is interpolated smoothly and the result is clamped in the [output min, output max] range.

 


 

input

Input shader to apply the range to.

input_min

Minimum input value to be used.

input_max

Maximum input value to be used.

output_min

Minimum output value to be used.

output_max

Maximum output value to be used.

smoothstep

If enabled, remapping is done using a smooth step function. Otherwise, it's done linearly.

contrast

Scales values around the Contrast Pivot

contrast_pivot

The origin of the contrast scaling. The default is 0.18 which is the average perceptual mid-gray.

bias

Push or pull values by altering the slope at the beginning of the range. Bias values below 0.5 decrease the slope and lower values overall.  Above 0.5, the slope is higher, and the value grow's more quickly. A value of 0.5 has no effect.

gain

Increase or decrease the slope of the mid-range values. Gain values below 0.5 increase the contrast whereas values above 0.5 flatten the mid-range values. A value of 0.5 has no effect.

  • No labels