diff --git a/examples/shaders/resources/shaders/glsl330/fog.fs b/examples/shaders/resources/shaders/glsl330/fog.fs index 67d0795ec..ac0132ff0 100644 --- a/examples/shaders/resources/shaders/glsl330/fog.fs +++ b/examples/shaders/resources/shaders/glsl330/fog.fs @@ -37,6 +37,7 @@ struct Light { uniform Light lights[MAX_LIGHTS]; uniform vec4 ambient; uniform vec3 viewPos; +uniform vec4 fogColor; uniform float fogDensity; void main() @@ -77,10 +78,6 @@ void main() // Fog calculation float dist = length(viewPos - fragPosition); - // these could be parameters... - const vec4 fogColor = vec4(0.5, 0.5, 0.5, 1.0); - //const float fogDensity = 0.16; - // Exponential fog float fogFactor = 1.0/exp((dist*fogDensity)*(dist*fogDensity));