ncannasse 7 år sedan
förälder
incheckning
bfb8d432cf
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      h3d/shader/SAO.hx

+ 1 - 1
h3d/shader/SAO.hx

@@ -71,7 +71,7 @@ class SAO extends ScreenShader {
 				occlusion += sampleAO(vUV, origin, normal, radiusSS, i, randomPatternRotationAngle);
 
 			occlusion = 1.0 - occlusion / float(numSamples);
-			occlusion = clamp(pow(occlusion, 1.0 + intensity), 0.0, 1.0);
+			occlusion = pow(occlusion, 1.0 + intensity).saturate();
 
 			output.color = vec4(occlusion.xxx, 1.);
 		}