mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-14 22:00:28 +01:00
replace 1.0/sqrt() with inversesqrt()
This commit is contained in:
parent
a45d293fd9
commit
b3a68b24bd
1 changed files with 1 additions and 1 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue