aboutsummaryrefslogtreecommitdiff
path: root/client/shaders/test_shader_1
diff options
context:
space:
mode:
Diffstat (limited to 'client/shaders/test_shader_1')
-rw-r--r--client/shaders/test_shader_1/opengl_vertex.glsl6
1 files changed, 5 insertions, 1 deletions
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;