From 0fa7230d07ece15a99dee38a53a42ea9612d7245 Mon Sep 17 00:00:00 2001 From: Julian Date: Fri, 31 Jan 2020 14:43:29 +0100 Subject: [PATCH] more interesseting sss --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 7a9cd2d..f3cd4c8 100644 --- a/index.html +++ b/index.html @@ -150,11 +150,10 @@ vec3 sssSun = vec3(0.,-5.,-7.0); vec3 tosssSunVec = normalize(sssSun - v_fragPos); vec3 tosssSun = normalize(vec3(0.0,-100.,1.)); - float ssDistortion = 1.; - float sssIntensity = .2; + float ssDistortion = 0.1; + float sssIntensity = 1.; vec3 halfWay = normalize(tosssSun+norm*ssDistortion); float ssScateringCoef = pow(clamp(dot(toCameraVector,-halfWay),0.0,1.0),5.) * sssIntensity; - //Sun glittering float glitterFactor = max(0.0,dot(tosssSunVec,reflect(-toCameraVector,norm))); if(!(glitterFactor > 0.98)) {