replace 1.0/sqrt() with inversesqrt()

This commit is contained in:
Brian Paul
2008-10-10 12:04:49 -06:00
parent a45d293fd9
commit b3a68b24bd

View File

@@ -24,7 +24,7 @@ void main()
float d, f;
d = p.x * p.x + p.y * p.y;
f = 1.0 / sqrt(d + 1.0);
f = inversesqrt(d + 1.0);
if (d >= BumpSize)
{ p = vec2(0.0); f = 1.0; }