This commit is contained in:
Emmanuel BENOîT 2017-10-05 09:07:37 +02:00
parent d5d56b094c
commit 3e6e9e1ba8
6 changed files with 29 additions and 13 deletions
shaders/lib

10
shaders/lib/fog.glsl Normal file
View file

@ -0,0 +1,10 @@
//! type library
vec3 FOG_Apply(
in vec3 color ,
in float dist ,
in float attenuation ,
in vec3 background )
{
return mix( background , color , exp( - dist * dist * attenuation ) );
}