mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Fix invalid liquid lighting.
This commit is contained in:
parent
a2003b0d55
commit
db60ae0459
@ -91,5 +91,5 @@ vec4 base = texture2D(baseTexture, uv).rgba;
|
|||||||
float d = max(0.0, min(vPosition.z / fogDistance * 1.5 - 0.6, 1.0));
|
float d = max(0.0, min(vPosition.z / fogDistance * 1.5 - 0.6, 1.0));
|
||||||
alpha = mix(alpha, 0.0, d);
|
alpha = mix(alpha, 0.0, d);
|
||||||
}
|
}
|
||||||
gl_FragColor = vec4(color.rgb, alpha);
|
gl_FragColor = vec4(col.rgb, alpha);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user