Selaa lähdekoodia

Fix color of ambient light (#1330)

pull/1332/head
Adrie 5 vuotta sitten
committed by GitHub
vanhempi
commit
3c095f9d34
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      examples/shaders/resources/shaders/glsl330/lighting.fs

+ 1
- 1
examples/shaders/resources/shaders/glsl330/lighting.fs Näytä tiedosto

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

Ladataan…
Peruuta
Tallenna