1
0
Fork 0

Make ALS procedural light shader palatable to nouveau driver

This commit is contained in:
Thorsten Renk 2017-09-01 12:57:11 +03:00
parent 44dec6f720
commit 4e41f9b9be

View file

@ -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);
}