mirror of
https://github.com/SangeloDev/SangeFault.git
synced 2024-11-14 01:22:43 +00:00
17 lines
288 B
Text
17 lines
288 B
Text
|
#version 150
|
||
|
|
||
|
#moj_import <fog.glsl>
|
||
|
|
||
|
uniform vec4 ColorModulator;
|
||
|
uniform float FogStart;
|
||
|
uniform float FogEnd;
|
||
|
uniform vec4 FogColor;
|
||
|
|
||
|
in float vertexDistance;
|
||
|
|
||
|
out vec4 fragColor;
|
||
|
|
||
|
void main() {
|
||
|
fragColor = linear_fog(ColorModulator, vertexDistance, FogStart, FogEnd, FogColor);
|
||
|
}
|