Browse Source

Fix color of ambient light (#1330)

pull/1332/head
Adrie 4 years ago
committed by GitHub
parent
commit
3c095f9d34
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/shaders/resources/shaders/glsl330/lighting.fs

+ 1
- 1
examples/shaders/resources/shaders/glsl330/lighting.fs View File

@ -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));

Loading…
Cancel
Save