add "BIOME TINT WATER" setting for when "GLASS TINT" is on

This commit is contained in:
Xonk
2024-01-11 14:59:43 -05:00
parent 5cac7c90a4
commit 6323326460
4 changed files with 7 additions and 4 deletions

View File

@ -316,7 +316,10 @@ if (gl_FragCoord.x * texelSize.x < 1.0 && gl_FragCoord.y * texelSize.y < 1.0 )
vec4 COLORTEST = vec4(Albedo, UnchangedAlpha);
#ifdef BIOME_TINT_WATER
if (iswater > 0.95) COLORTEST.rgb = color.rgb;
#endif
////////////////////////////////

View File

@ -223,7 +223,7 @@ void main() {
vec4 albedo = vec4(unpack0.ba,unpack1.rg);
vec2 tangentNormals = unpack0.xy*2.0-1.0;
if(albedo.a <= 0.0) tangentNormals = vec2(0.0);
vec4 TranslucentShader = texture2D(colortex2,texcoord);
vec4 TranslucentShader = texture2D(colortex2, texcoord);
////// --------------- UNPACK MISC --------------- //////
float trpData = texture2D(colortex7,texcoord).a;