diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-12-02 23:08:46 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-12-02 23:47:53 +0200 |
commit | ec54e3575798ffaf176ece4147125893c7a9a233 (patch) | |
tree | 0d21002ec6bb0a7fc1cb8598dbb61b3cd38be024 /client/shaders/test_shader_1 | |
parent | 68e36226b3a3e8c8e8208a0f6edaf6f638335b89 (diff) | |
download | minetest-ec54e3575798ffaf176ece4147125893c7a9a233.tar.gz minetest-ec54e3575798ffaf176ece4147125893c7a9a233.tar.bz2 minetest-ec54e3575798ffaf176ece4147125893c7a9a233.zip |
Tweak shader randomly a bit
Diffstat (limited to 'client/shaders/test_shader_1')
-rw-r--r-- | client/shaders/test_shader_1/opengl_vertex.glsl | 6 |
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;
|