From f9408474a2edda880c6a7f0e80da55308dada55c Mon Sep 17 00:00:00 2001 From: Julian Date: Wed, 29 Jan 2020 20:31:01 +0100 Subject: [PATCH] reduce diffuse component impact --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 73af5e0..f77df8d 100644 --- a/index.html +++ b/index.html @@ -159,7 +159,7 @@ //gl_FragColor = vec4(diffuse * oceanColor,1.0); //Render only diffuse component //gl_FragColor = vec4(normal,1.0); //show Normal map //gl_FragColor = vec4(displace.x,displace.x,displace.x,1.0); //Show Perlin Noise texture deactivate vertex distrotion before - gl_FragColor = vec4((mix(oceanColor + (oceanColor*ssScateringCoef),skyColor,fresnel).xyz), 1.0); //All combined + gl_FragColor = vec4(clamp(diffuse,0.97,1.0) * (mix(oceanColor + (oceanColor*ssScateringCoef),skyColor*0.8,fresnel).xyz), 1.0); //All combined }