From 1fe8d1ae1678c5bd5ce39712c6efe62768c92ea9 Mon Sep 17 00:00:00 2001 From: myownfriend Date: Wed, 21 May 2014 00:10:07 -0400 Subject: [PATCH] Update nightvision2.glsl --- Data/Sys/Shaders/nightvision2.glsl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Data/Sys/Shaders/nightvision2.glsl b/Data/Sys/Shaders/nightvision2.glsl index 82bb72ffde..3f5910c46b 100644 --- a/Data/Sys/Shaders/nightvision2.glsl +++ b/Data/Sys/Shaders/nightvision2.glsl @@ -50,10 +50,13 @@ void main() // neccessary to make the darkened area rounded // instead of rhombus-shaped. float sqrt = x / 10.0; - while((sqrt*sqrt) < x) sqrt+=0.1; + + while ((sqrt*sqrt) < x) + sqrt+=0.1; x = sqrt; sqrt = y / 10.0; - while((sqrt*sqrt) < y) sqrt+=0.1; + while ((sqrt*sqrt) < y) + sqrt+=0.1; y = sqrt; x *= 2.0;