Make ALS procedural light shader palatable to nouveau driver
This commit is contained in:
parent
44dec6f720
commit
4e41f9b9be
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue