mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-22 17:47:34 +08:00
fix rain fog brightness
This commit is contained in:
parent
432674bc59
commit
8c5a2360c4
@ -36,7 +36,7 @@ float cloudVol(in vec3 pos){
|
||||
|
||||
TimeOfDayFog(UniformFog, CloudyFog);
|
||||
|
||||
return CloudyFog + UniformFog;
|
||||
return CloudyFog + UniformFog + RainFog;
|
||||
}
|
||||
|
||||
vec4 getVolumetricRays(
|
||||
@ -254,6 +254,7 @@ vec4 InsideACloudFog(
|
||||
|
||||
|
||||
float cloudhsadow = 1;
|
||||
|
||||
#ifdef VL_CLOUDS_SHADOWS
|
||||
cloudhsadow = sh * GetCloudShadow_VLFOG(progressW);
|
||||
#endif
|
||||
@ -274,8 +275,8 @@ vec4 InsideACloudFog(
|
||||
vec3 AtmosphericFog = Fog_SkyCol * (rL+m) ;
|
||||
|
||||
// extra fog effects
|
||||
vec3 rainRays = (sunColor*cloudhsadow) * (rayL*phaseg(SdotV,0.5)) * clamp(pow(WsunVec.y,5)*2,0.0,1) * rainStrength * RainFog_amount;
|
||||
vec3 CaveRays = (sunColor*cloudhsadow) * phaseg(SdotV,0.7) * 0.001 * (1.0 - max(eyeBrightnessSmooth.y,0)/240.);
|
||||
vec3 rainRays = ((Fog_SunCol/5)*cloudhsadow) * (rayL*phaseg(SdotV,0.5)) * clamp(pow(WsunVec.y,5)*2,0.0,1.0) * rainStrength * RainFog_amount;
|
||||
vec3 CaveRays = (Fog_SunCol*cloudhsadow) * phaseg(SdotV,0.7) * 0.001 * (1.0 - max(eyeBrightnessSmooth.y,0)/240.);
|
||||
|
||||
vec3 vL0 = (DirectLight + AmbientLight + AtmosphericFog + rainRays ) * max(eyeBrightnessSmooth.y,0)/240. + CaveRays ;
|
||||
|
||||
|
@ -225,7 +225,7 @@ uniform.float.Alto_Cov = smooth(2, if( \
|
||||
|
||||
uniform.float.Alto_Den = smooth(3, if( \
|
||||
moonPhase == 0, 0.1, \
|
||||
moonPhase == 1, 0.35, \
|
||||
moonPhase == 1, 0.25, \
|
||||
moonPhase == 2, 0.0, \
|
||||
moonPhase == 3, 0.0, \
|
||||
moonPhase == 4, 0.0, \
|
||||
|
@ -4,4 +4,5 @@
|
||||
// #define LINE
|
||||
#define BLOCKENTITIES
|
||||
#define WORLD
|
||||
|
||||
#include "/programs/all_solid.vsh"
|
@ -2,4 +2,5 @@
|
||||
|
||||
#define WORLD
|
||||
#define BLOCKENTITIES
|
||||
|
||||
#include "/programs/all_solid.fsh"
|
@ -3,4 +3,5 @@
|
||||
|
||||
// #define WORLD
|
||||
#define ENTITIES
|
||||
|
||||
#include "/programs/all_solid.vsh"
|
Loading…
Reference in New Issue
Block a user