From: Perttu Ahola Date: Sun, 2 Dec 2012 21:08:46 +0000 (+0200) Subject: Tweak shader randomly a bit X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=ec54e3575798ffaf176ece4147125893c7a9a233;p=zefram%2Fminetest%2Fminetest_engine.git Tweak shader randomly a bit --- diff --git a/client/shaders/test_shader_1/opengl_vertex.glsl b/client/shaders/test_shader_1/opengl_vertex.glsl index e24f58c0..3cf1f122 100644 --- a/client/shaders/test_shader_1/opengl_vertex.glsl +++ b/client/shaders/test_shader_1/opengl_vertex.glsl @@ -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;