1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-04 16:35:03 -05:00

Tweak shader randomly a bit

This commit is contained in:
Perttu Ahola 2012-12-02 23:08:46 +02:00
parent 68e36226b3
commit ec54e35757

View File

@ -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;