Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

What is unity_ColorSpaceDouble used for?

Discussion in 'Shaders' started by starportx, Aug 16, 2015.

  1. starportx

    starportx

    Joined:
    Nov 26, 2014
    Posts:
    7
    In UnityCG.cginc I found some defination:

    uniform fixed4 unity_ColorSpaceGrey;
    uniform fixed4 unity_ColorSpaceDouble;
    uniform half4 unity_ColorSpaceDielectricSpec;
    uniform half4 unity_ColorSpaceLuminance;

    I guess they were some variables for color space conversion, but how to use them, any sample? what does each vector component stands for?
     
    Last edited: Aug 17, 2015
  2. starportx

    starportx

    Joined:
    Nov 26, 2014
    Posts:
    7
    No body use them before?
     
  3. hankchen

    hankchen

    Joined:
    Sep 18, 2014
    Posts:
    2
    It is used for gamma
     
  4. Umisky100

    Umisky100

    Joined:
    Jan 25, 2019
    Posts:
    2
    I used unity_ColorSpaceDouble when I convert my colour space from the Gamma Space to the Linear Space. You can search how to make Gamma Correction in a shader.