Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GammaToLinearSpace(float)

Converts the given value from gamma (sRGB) to linear color space.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static float GammaToLinearSpace(float value)

Parameters

value

Returns

Type

Description

float

Remarks

Additional Resources: Linear and Gamma rendering, ColorSpace, Mathf.LinearToGammaSpace, Color.linear.