11 lines
190 B
Text
11 lines
190 B
Text
|
//! 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 ) );
|
||
|
}
|