summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--serve/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/serve/index.html b/serve/index.html
index f419d35..2bf24fc 100644
--- a/serve/index.html
+++ b/serve/index.html
@@ -1268,10 +1268,10 @@ terrainMat.onBeforeCompile = (sh) => {
'float h21T(vec2 p){ return fract(sin(dot(p,vec2(127.1,311.7)))*43758.5453); }\n' +
'float vnT(vec2 p){ vec2 i=floor(p),f=fract(p); f=f*f*(3.0-2.0*f); return mix(mix(h21T(i),h21T(i+vec2(1.0,0.0)),f.x),mix(h21T(i+vec2(0.0,1.0)),h21T(i+vec2(1.0,1.0)),f.x),f.y); }\n' +
'float fbmT(vec2 p){ float a=0.5,s=0.0; for(int i=0;i<4;i++){ s+=a*vnT(p); p=p*2.03+17.1; a*=0.5; } return s; }\n')
- .replace('#include <color_fragment>', '#include <color_fragment>\n diffuseColor.rgb *= 0.82 + 0.34*fbmT(vWPosT.xz*0.6);')
+ .replace('#include <color_fragment>', '#include <color_fragment>\n diffuseColor.rgb *= 0.9 + 0.18*fbmT(vWPosT.xz*0.6);')
.replace('#include <roughnessmap_fragment>', '#include <roughnessmap_fragment>\n roughnessFactor *= 0.5 + 0.65*fbmT(vWPosT.xz*0.32);')
.replace('#include <normal_fragment_maps>', '#include <normal_fragment_maps>\n' +
- ' { float hh=fbmT(vWPosT.xz*0.34); vec2 dH=vec2(dFdx(hh),dFdy(hh))*15.0;' +
+ ' { float hh=fbmT(vWPosT.xz*0.30); vec2 dH=vec2(dFdx(hh),dFdy(hh))*5.5;' +
' vec3 Sx=dFdx(-vViewPosition), Sy=dFdy(-vViewPosition);' +
' vec3 R1=cross(Sy,normal), R2=cross(normal,Sx); float det=dot(Sx,R1);' +
' vec3 grad=sign(det)*(dH.x*R1+dH.y*R2); normal=normalize(abs(det)*normal-grad); }');