diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/shaders/resources/shaders/glsl330/lighting.fs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shaders/resources/shaders/glsl330/lighting.fs b/examples/shaders/resources/shaders/glsl330/lighting.fs index 33fa8f9a..6877c1c7 100644 --- a/examples/shaders/resources/shaders/glsl330/lighting.fs +++ b/examples/shaders/resources/shaders/glsl330/lighting.fs @@ -75,7 +75,7 @@ void main() } finalColor = (texelColor*((colDiffuse + vec4(specular, 1.0))*vec4(lightDot, 1.0))); - finalColor += texelColor*(ambient/10.0); + finalColor += texelColor*(ambient/10.0)*colDiffuse; // Gamma correction finalColor = pow(finalColor, vec4(1.0/2.2)); |
