From 24682d122147c40444c21bdefdba66d8efa5d7b8 Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Thu, 25 Feb 2016 15:34:49 +0200 Subject: [PATCH] more shader cosmetix --- data/shaders/srlight_topolar.frag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/shaders/srlight_topolar.frag b/data/shaders/srlight_topolar.frag index 3c3a34e..5860690 100644 --- a/data/shaders/srlight_topolar.frag +++ b/data/shaders/srlight_topolar.frag @@ -28,7 +28,6 @@ void main (void) { // if we've hit an opaque fragment (occluder), then get new distance // if the new distance is below the current, then we'll use that for our ray if (dataa > THRESHOLD) { - dst = max(0.0, dst-ltsyStep); #ifdef INTO_OCCLUDERS //dst = min(dst+ltsyStep*6.0, 1.0); // if we hit occluders, trace thru it for some more steps, to lit the occluder itself @@ -47,6 +46,8 @@ void main (void) { break; } } +#else + dst = max(0.0, dst-ltsyStep); #endif break; // the current distance is how far from the top we've come } -- 2.11.4.GIT