mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-10 04:53:07 +08:00
fix biome tint water setting not working
This commit is contained in:
@@ -848,7 +848,11 @@ void main() {
|
||||
|
||||
// apply multiplicative color blend for glass n stuff
|
||||
#ifdef Glass_Tint
|
||||
if(!isWater && translucentCheck && !isBlockBreaking) color *= mix(normalize(albedo.rgb+1e-7), vec3(1.0), max(borderFog.a, min(max(0.1-albedo.a,0.0) * 10.0,1.0))) ;
|
||||
if(
|
||||
#ifndef BIOME_TINT_WATER
|
||||
!isWater &&
|
||||
#endif
|
||||
translucentCheck && !isBlockBreaking) color *= mix(normalize(albedo.rgb+1e-7), vec3(1.0), max(borderFog.a, min(max(0.1-albedo.a,0.0) * 10.0,1.0))) ;
|
||||
#endif
|
||||
|
||||
// blend forward rendered programs onto the color.
|
||||
|
||||
Reference in New Issue
Block a user