Fog
This commit is contained in:
parent
d5d56b094c
commit
3e6e9e1ba8
6 changed files with 29 additions and 13 deletions
shaders/lib
10
shaders/lib/fog.glsl
Normal file
10
shaders/lib/fog.glsl
Normal 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 ) );
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue