reimplement BIOME_TINT_WATER

This commit is contained in:
Xonk
2024-01-11 15:28:24 -05:00
parent 6323326460
commit e6a0f2d65d
2 changed files with 17 additions and 2 deletions

View File

@ -267,7 +267,7 @@ void main() {
if (TranslucentShader.a > 0.0){
#ifdef Glass_Tint
if(albedo.a > 0.2) color = color*albedo.rgb + color * clamp(pow(1.0-luma(albedo.rgb),20.),0.0,1.0);
if(albedo.a > 0.2 && !iswater) color = color*albedo.rgb + color * clamp(pow(1.0-luma(albedo.rgb),20.),0.0,1.0);
#endif
color = color*(1.0-TranslucentShader.a) + TranslucentShader.rgb;