From ec54e3575798ffaf176ece4147125893c7a9a233 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 2 Dec 2012 23:08:46 +0200 Subject: [PATCH] Tweak shader randomly a bit --- client/shaders/test_shader_1/opengl_vertex.glsl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.30.2