9 lines
208 B
Plaintext
9 lines
208 B
Plaintext
|
#version 120
|
||
|
|
||
|
vec4 fog(vec4 color, float fogCoord, float fogStart, float fogEnd) {
|
||
|
float fog = clamp((fogEnd - fogCoord) / (fogEnd - fogStart), 0.0, 1.0);
|
||
|
|
||
|
return mix(vec4(color.xyz, 0.0), color, fog);
|
||
|
}
|
||
|
|