Skip to content
Snippets Groups Projects
Commit ec54e357 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

Tweak shader randomly a bit

parent 68e36226
No related branches found
No related tags found
No related merge requests found
......@@ -43,8 +43,12 @@ void main(void)
color.g = rg;
color.b = b;
// Make sides and bottom darker than the top
color = color * color; // SRGB -> Linear
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment