Hello!
I create new unlit shader. Put 0.5 into emissive channel. Create a screenshot. Pick color with Ps, paint and etc. And this color is not 128 128 128, and is not 127 127 127, and is not 127.5 127.5 127.5. This color is 187 187 187. Is it skynet joking with me?
!(http://i.imgur.com/hF48IWt.jpg)
Ok, maybe you want some details.
I create new unlit shader. Put 0.5 into emissive channel. Create a screenshot. Pick color with Ps, paint and etc. And this color is not 128 128 128, and is not 127 127 127, and is not 127.5 127.5 127.5. This color is 187 187 187.
Is it skynet joking with me?
The emissive term represents light emitted or given off by a surface. This contribution is independent of all light sources. The emissive term is an RGB value that indicates the color of the emitted light. If you were to view an emissive material in a completely dark room, it would appear to be this color. The emissive term can simulate glowing. Another way to think of the emissive term is that it is a color added after computing all the other lighting terms.
Source : The Cg Tutorial - Chapter 5. Lighting
Thus, the final color you get is the base color of your object + lightning in your scene + emissive value. This explains why you don’t have a RGB value of (128, 128, 128)
Nope.
See the pictures.
The base color is black.
The same code of shader working differently on 2 computers.
On my computer 0.5=0.5. On the other computer 0.5 is 187/255.
edit- project settings -player- color space.
It need to be ''gamma"