From d8fe09e9b1bd751a0984317f85bdb8986e4eb389 Mon Sep 17 00:00:00 2001 From: myownfriend Date: Wed, 21 May 2014 00:11:11 -0400 Subject: [PATCH] Update nightvision2scanlines.glsl --- Data/Sys/Shaders/nightvision2scanlines.glsl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Data/Sys/Shaders/nightvision2scanlines.glsl b/Data/Sys/Shaders/nightvision2scanlines.glsl index 1cfcd20693..f0b63687ad 100644 --- a/Data/Sys/Shaders/nightvision2scanlines.glsl +++ b/Data/Sys/Shaders/nightvision2scanlines.glsl @@ -60,10 +60,12 @@ 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;