reduce diffuse component impact
This commit is contained in:
@@ -159,7 +159,7 @@
|
|||||||
//gl_FragColor = vec4(diffuse * oceanColor,1.0); //Render only diffuse component
|
//gl_FragColor = vec4(diffuse * oceanColor,1.0); //Render only diffuse component
|
||||||
//gl_FragColor = vec4(normal,1.0); //show Normal map
|
//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(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
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script id="default-vs" type="x-shader/x-vertex">
|
<script id="default-vs" type="x-shader/x-vertex">
|
||||||
|
|||||||
Reference in New Issue
Block a user