소스 검색

Fix color of ambient light (#1330)

pull/1332/head
Adrie 5 년 전
committed by GitHub
부모
커밋
3c095f9d34
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      examples/shaders/resources/shaders/glsl330/lighting.fs

+ 1
- 1
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));

불러오는 중...
취소
저장