Gamma

Applies or removes a gamma curve on a bitmap or heightfield, either the standard sRGB curve or a gamma value of your choice.

When to Use

  • Converting between sRGB and linear: Apply sRGB gamma and Remove sRGB gamma undo each other, so you can convert to linear, do your processing, and convert back.
  • Adjusting midtones: Brighten or darken the midtones of an image while leaving pure black and pure white unchanged.
  • Reshaping elevation: On a heightfield, a gamma curve reshapes the elevation profile while leaving the very bottom and very top of the height range where they are: darkening the midtones lowers mid-elevations and broadens valleys, brightening them raises mid-elevations and broadens high ground.

What Gamma Does

A gamma curve brightens or darkens the midtones of an image while leaving pure black and pure white unchanged. Images on disk are usually stored with the sRGB gamma curve applied (“sRGB” or “gamma-encoded”), while blending and lighting math works best on values without it (“linear”).

How to Use

Connect a bitmap or heightfield to the input. By default the device applies the sRGB gamma curve, brightening the midtones.

  1. Choose an Operation: one of the sRGB presets to convert between encodings, or an arbitrary gamma for a custom curve.
  2. For an arbitrary gamma, set the Gamma value.

Inputs

Port NameTypeRequiredDescription
Primary InputHeightfield or BitmapRequiredThe data to adjust
Mask InputHeightfieldOptionalLimits where the adjustment is applied

Outputs

Port NameTypeDescription
Primary OutputSame as inputThe gamma-adjusted data

For bitmaps, the same curve is applied to the red, green, and blue channels.

Parameters

Operation (Default: Apply sRGB gamma)

  • Apply sRGB gamma: Converts linear values to sRGB encoding. Midtones become brighter.
  • Remove sRGB gamma: Converts sRGB-encoded values back to linear. Midtones become darker.
  • Apply arbitrary gamma: Applies the Gamma value as a power curve. Gamma above 1 darkens the midtones; below 1 brightens them.
  • Remove arbitrary gamma: The reverse of the above. Gamma above 1 brightens the midtones; below 1 darkens them.

Gamma (Default: 1.0, Range: 0.1-8.0) The strength of the gamma curve. 1.0 leaves the input unchanged. A value of 2.2 is the classic display gamma, close to the sRGB curve. Accepts spatial input, so a map connected to its port can vary the correction across the terrain. Only visible when Operation is set to Apply arbitrary gamma or Remove arbitrary gamma.

Tips and Tricks

  • Remove arbitrary gamma with a Gamma of 2.2 gives a result close to Apply sRGB gamma; Apply arbitrary gamma with 2.2 is close to Remove sRGB gamma.

Limitations

  • The device expects values between 0 and 1. Clamp the input first if it may fall outside that range.
Updated on December 3, 2026
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support