mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2025-06-20 16:07:22 +08:00
small tweak
This commit is contained in:
parent
02090206b0
commit
6f1d3529fd
@ -401,7 +401,7 @@ void main() {
|
|||||||
// estEyeDepth = max(Water_Top_Layer - cameraPosition.y,0.0);
|
// estEyeDepth = max(Water_Top_Layer - cameraPosition.y,0.0);
|
||||||
|
|
||||||
vec3 vl = vec3(0.0);
|
vec3 vl = vec3(0.0);
|
||||||
waterVolumetrics(vl, vec3(0.0), fragpos, estEyeDepth, estEyeDepth, length(fragpos), noise, totEpsilon, scatterCoef, ambientColVol, lightColVol*(1.0-pow(1.0-sunElevation*lightCol.a,5.0)) , dot(normalize(fragpos), normalize(sunVec) * lightCol.a ));
|
waterVolumetrics(vl, vec3(0.0), fragpos, estEyeDepth, estEyeDepth, length(fragpos), noise, totEpsilon, scatterCoef, ambientColVol, lightColVol*(1.0-pow(1.0-sunElevation*lightCol.a,5.0)) , dot(normalize(fragpos), normalize(sunVec* lightCol.a ) ));
|
||||||
|
|
||||||
gl_FragData[0] = clamp(vec4(vl,1.0),0.000001,65000.);
|
gl_FragData[0] = clamp(vec4(vl,1.0),0.000001,65000.);
|
||||||
}
|
}
|
||||||
|
@ -316,7 +316,7 @@ void main() {
|
|||||||
|
|
||||||
// bloomy rain effect
|
// bloomy rain effect
|
||||||
float rainDrops = clamp(texture2D(colortex9,texcoord).a, 0.0,1.0);
|
float rainDrops = clamp(texture2D(colortex9,texcoord).a, 0.0,1.0);
|
||||||
if(rainDrops > 0.0) vl.a *= clamp(1.0 - pow(rainDrops*5.0,2),0.0,1.0);
|
if(rainDrops > 0.0) bloomyFogMult *= clamp(1.0 - pow(rainDrops*5.0,1),0.0,1.0);
|
||||||
|
|
||||||
/// lava.
|
/// lava.
|
||||||
if (isEyeInWater == 2){
|
if (isEyeInWater == 2){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user