mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Update nightvision2.glsl
This commit is contained in:
@ -50,10 +50,13 @@ void main()
|
|||||||
// neccessary to make the darkened area rounded
|
// neccessary to make the darkened area rounded
|
||||||
// instead of rhombus-shaped.
|
// instead of rhombus-shaped.
|
||||||
float sqrt = x / 10.0;
|
float sqrt = x / 10.0;
|
||||||
while((sqrt*sqrt) < x) sqrt+=0.1;
|
|
||||||
|
while ((sqrt*sqrt) < x)
|
||||||
|
sqrt+=0.1;
|
||||||
x = sqrt;
|
x = sqrt;
|
||||||
sqrt = y / 10.0;
|
sqrt = y / 10.0;
|
||||||
while((sqrt*sqrt) < y) sqrt+=0.1;
|
while ((sqrt*sqrt) < y)
|
||||||
|
sqrt+=0.1;
|
||||||
y = sqrt;
|
y = sqrt;
|
||||||
|
|
||||||
x *= 2.0;
|
x *= 2.0;
|
||||||
|
Reference in New Issue
Block a user