From: Perttu Ahola Date: Sun, 2 Dec 2012 21:08:46 +0000 (+0200) Subject: Tweak shader randomly a bit X-Git-Tag: 0.4.4~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec54e3575798ffaf176ece4147125893c7a9a233;p=oweals%2Fminetest.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 e24f58c09..3cf1f122b 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;