From 4e41f9b9be3dff49c35305d26945c8705205e83a Mon Sep 17 00:00:00 2001 From: Thorsten Renk Date: Fri, 1 Sep 2017 12:57:11 +0300 Subject: [PATCH] Make ALS procedural light shader palatable to nouveau driver --- Shaders/light-ALS.frag | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Shaders/light-ALS.frag b/Shaders/light-ALS.frag index 5b40b2ceb..4b49c7585 100644 --- a/Shaders/light-ALS.frag +++ b/Shaders/light-ALS.frag @@ -52,7 +52,8 @@ float shape (in vec3 coord, in float noise, in float fade, in float transmission if (sinterm == 0.0) {ray = 0.0;} else - {ray = clamp(pow(sinterm,10.0),0.0,1.0); + //{ray = clamp(pow(sinterm,10.0),0.0,1.0); + {ray = sinterm * sinterm * sinterm * sinterm * sinterm * sinterm * sinterm * sinterm * sinterm * sinterm; ray *= exp(-40.0 * r * r) * smoothstep(0.8, 1.0,fade) * smoothstep(0.7, 1.0, glare); }