Merge branch 'terrain-frag-hotfix' into 'master'

Put ice_reflections under REFLECTION_MODE_HIGH

See merge request veloren/veloren!4177
This commit is contained in:
Isse 2023-11-10 12:39:19 +00:00
commit 2703f4031d

View File

@ -309,11 +309,13 @@ void main() {
}
#endif
#if (REFLECTION_MODE >= REFLECTION_MODE_HIGH)
// Reflections on ice
if (f_kind == BLOCK_ICE && f_norm.z == 1.0) {
f_alpha = min(f_alpha, 0.3);
k_s = mix(k_s, vec3(0.7, 0.7, 1.0), 0.5);
}
#endif
// float sun_light = get_sun_brightness(sun_dir);
// float moon_light = get_moon_brightness(moon_dir);