Minor clean-up in water.frag
@@ -82,9 +82,7 @@ void main()
if(underWater)
{
outColor.rgb = water(outColor.rgb, eyePosition, pos);
- return;
- }
-
+ } else {
// Compute cosine to the incident angle
float cosAngle = dot(normal, -incidentDir);
@@ -100,3 +98,6 @@ void main()
// Mix refraction and reflection
outColor.rgb = mix(refractColor, reflectColor, fresnel);
}
+
+
+}
