From 1f2d56c032cc3d78f81da80bee822bb52eb00a33 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Sat, 31 Dec 2022 13:04:28 +0000 Subject: [PATCH] Better reflections --- assets/voxygen/shaders/clouds-frag.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/voxygen/shaders/clouds-frag.glsl b/assets/voxygen/shaders/clouds-frag.glsl index de0de68d12..746731c690 100644 --- a/assets/voxygen/shaders/clouds-frag.glsl +++ b/assets/voxygen/shaders/clouds-frag.glsl @@ -197,7 +197,7 @@ void main() { float new_dist = distance(new_wpos, cam_pos.xyz); float merge = min( // Off-screen merge factor - clamp((1.0 - max(abs(new_uv.y - 0.5), abs(new_uv.x - 0.5)) * 2) * 3.0, 0, 1), + clamp((1.0 - max(abs(new_uv.y - 0.5), abs(new_uv.x - 0.5)) * 2) * 8.0, 0, 1), // Depth merge factor clamp((new_dist - dist * 0.5) / (dist * 0.5), 0.0, 1.0) ); @@ -229,7 +229,7 @@ void main() { // Apply clouds to reflection refl_col = mix(refl_col, get_cloud_color(refl_col, refl_dir, wpos, time_of_day.x, 100000.0, 1.0), not_underground); } - color.rgb = mix(color.rgb, refl_col, min(color.a * 2.0, 0.75)); + color.rgb = mix(color.rgb, refl_col, color.a); cloud_blend = 1; } else { #else