Tweak shader randomly a bit

pull/10/head
Perttu Ahola 2012-12-02 23:08:46 +02:00
parent 68e36226b3
commit ec54e35757
1 changed files with 5 additions and 1 deletions

View File

@ -43,8 +43,12 @@ void main(void)
color.g = rg; color.g = rg;
color.b = b; color.b = b;
// Make sides and bottom darker than the top
color = color * color; // SRGB -> Linear
if(gl_Normal.y <= 0.5) if(gl_Normal.y <= 0.5)
color *= 0.7; color *= 0.6;
//color *= 0.7;
color = sqrt(color); // Linear -> SRGB
color.a = gl_Color.a; color.a = gl_Color.a;