From a5c37262dde11768c4256d4896bb9fabde08f007 Mon Sep 17 00:00:00 2001 From: Joshua Barretto Date: Thu, 26 Nov 2020 00:38:40 +0000 Subject: [PATCH] Better aurora --- assets/voxygen/shaders/include/cloud/regular.glsl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/voxygen/shaders/include/cloud/regular.glsl b/assets/voxygen/shaders/include/cloud/regular.glsl index 5a57faebf1..de764f38de 100644 --- a/assets/voxygen/shaders/include/cloud/regular.glsl +++ b/assets/voxygen/shaders/include/cloud/regular.glsl @@ -86,7 +86,7 @@ vec4 cloud_at(vec3 pos, float dist, out vec3 emission) { #endif } - float mist_sun_access = 0.5 + turb_noise; + float mist_sun_access = 0.5 + turb_noise * 0.5; float mist_moon_access = mist_sun_access; sun_access = mix(cloud_sun_access, mist_sun_access, clamp(mist * 20000, 0, 1)); moon_access = mix(cloud_moon_access, mist_moon_access, clamp(mist * 20000, 0, 1)); @@ -109,6 +109,9 @@ vec4 cloud_at(vec3 pos, float dist, out vec3 emission) { #if (CLOUD_MODE >= CLOUD_MODE_LOW) emission_alt += (noise_3d(vec3(wind_pos.xy * 0.00003 + cloud_tendency * 0.2, time_of_day.x * 0.0001)) - 0.5) * 6000; #endif + #if (CLOUD_MODE >= CLOUD_MODE_HIGH) + emission_alt += (noise_3d(vec3(wind_pos.xy * 0.0005 + cloud_tendency * 0.2, emission_alt * 0.0001 + time_of_day.x * 0.0005)) - 0.5) * 1000; + #endif float tail = (texture(t_noise, wind_pos.xy * 0.00005).x - 0.5) * 10 + (z - emission_alt) * 0.001; vec3 emission_col = vec3(0.6 + tail * 0.6, 1.0, 0.3 + tail * 0.2); float emission_nz = max(texture(t_noise, wind_pos.xy * 0.00003).x - 0.6, 0) / (10.0 + abs(z - emission_alt) / 40);