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 }