Skip to content
This repository has been archived by the owner on Nov 20, 2021. It is now read-only.

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
McbeEringi committed Aug 30, 2021
1 parent bf4bdb7 commit 009488b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ESBE_3G/shaders/glsl/terrain.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ HM vec4 water(HM vec4 col,float weather,float uw,float sun,float day,HM vec3 n){
vec4 col_=col*mix(1.,mix(1.4,1.6,uw),pow(1.-abs(h)*.5,mix(1.5,2.5,uw)));
if(!bool(uw)){
HM vec3 rpos=reflect(wpos,n);
HM vec2 spos=(rpos.xz+h*rpos.xz/max(abs(rpos.y),1.)*1.5)*pow(rpos.y,-.8);//*sign(rpos.y);
HM vec2 spos=(rpos.xz+h*rpos.xz/max(rpos.y,1.)*1.5)*pow(abs(rpos.y),-.8);//*sign(rpos.y);
HM vec2 srad=normalize(vec2(length(spos),1));
vec4 scol=mix(mix(vec4(FOG_COLOR.rgb,1),col,srad.y),vec4((vec3(mix(.2,1.,day))+FOG_COLOR.rgb)*.5,1),smoothstep(mix(-.6,.3,weather),.9,cmap(spos*.04))*step(0.,rpos.y));
#ifdef USE_NORMAL
Expand Down

0 comments on commit 009488b

Please sign in to comment.