fix water shadows with colored shadows enabled

This commit is contained in:
Merlin1809
2025-11-21 01:22:12 +01:00
parent 81542683f5
commit d7d4b0ed65
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -588,11 +588,11 @@ vec4 waterVolumetrics_alt( vec3 rayStart, vec3 rayEnd, float estEndDepth, float
// sh = shadow2D( shadow, pos).x;
#ifdef TRANSLUCENT_COLORED_SHADOWS
sh = vec3(shadow2D(shadowtex0, pos).x);
sh *= vec3(shadow2D(shadowtex0, pos).x);
if(shadow2D(shadowtex1, pos).x > pos.z && sh.x < 1.0){
vec4 translucentShadow = texture2D(shadowcolor0, pos.xy);
if(translucentShadow.a < 0.9) sh = normalize(translucentShadow.rgb+0.0001);
if(translucentShadow.a < 0.9) sh *= normalize(translucentShadow.rgb+0.0001);
}
#else
sh *= vec3(shadow2D(shadow, pos).x);
+1 -1
View File
@@ -1,6 +1,6 @@
option.SHADER_VERSION_LABEL = §d§lECLIPSE§r - A Bliss Edit
prefix.SHADER_VERSION_LABEL = V
value.SHADER_VERSION_LABEL.482 = 5.3.1
value.SHADER_VERSION_LABEL.482 = 5.3.2
# if you're here to translate, this is not a joke, these do what they say
profile.POTATO=§4Potato
+1 -1
View File
@@ -1,6 +1,6 @@
option.SHADER_VERSION_LABEL = §d§lECLIPSE§r - Bliss 编辑版
prefix.SHADER_VERSION_LABEL = 版本
value.SHADER_VERSION_LABEL.482 = 5.3.1
value.SHADER_VERSION_LABEL.482 = 5.3.2
# 如果你是来翻译的,这不是玩笑,这些选项的功能正如其名
profile.POTATO=§4土豆 (极低配置)