mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-26 18:22:33 +08:00
tweaks to underwater VL gradient (it was too strong)
This commit is contained in:
@ -290,7 +290,7 @@ vec4 waterVolumetrics(vec3 rayStart, vec3 rayEnd, float rayLength, vec2 dither,
|
|||||||
float thing = -normalize(dVWorld).y;
|
float thing = -normalize(dVWorld).y;
|
||||||
thing = clamp(thing + 0.333,0.0,1.0);
|
thing = clamp(thing + 0.333,0.0,1.0);
|
||||||
thing = pow(1.0-pow(1.0-thing,2.0),2.0);
|
thing = pow(1.0-pow(1.0-thing,2.0),2.0);
|
||||||
thing *= 7.0;
|
thing *= 15.0;
|
||||||
|
|
||||||
float expFactor = 11.0;
|
float expFactor = 11.0;
|
||||||
for (int i=0;i<spCount;i++) {
|
for (int i=0;i<spCount;i++) {
|
||||||
@ -299,7 +299,7 @@ vec4 waterVolumetrics(vec3 rayStart, vec3 rayEnd, float rayLength, vec2 dither,
|
|||||||
|
|
||||||
vec3 progressW = gbufferModelViewInverse[3].xyz+cameraPosition + d*dVWorld;
|
vec3 progressW = gbufferModelViewInverse[3].xyz+cameraPosition + d*dVWorld;
|
||||||
|
|
||||||
float distanceFromWaterSurface = max(-(progressW.y - waterEnteredAltitude - thing),0.0);
|
float distanceFromWaterSurface = max(-(progressW.y - waterEnteredAltitude),0.0);
|
||||||
|
|
||||||
vec3 sh = vec3(1.0);
|
vec3 sh = vec3(1.0);
|
||||||
#ifdef OVERWORLD_SHADER
|
#ifdef OVERWORLD_SHADER
|
||||||
|
Reference in New Issue
Block a user