소스 검색

Use the vertex color as part of the base shader in GLSL330 (#4431)

pull/4432/head
Jeffery Myers 6 달 전
committed by GitHub
부모
커밋
728ccc96bc
No known key found for this signature in database GPG 키 ID: B5690EEEBB952194
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      examples/shaders/resources/shaders/glsl330/base.fs

+ 4
- 1
examples/shaders/resources/shaders/glsl330/base.fs 파일 보기

@ -20,6 +20,9 @@ void main()
// NOTE: Implement here your fragment shader code
finalColor = texelColor*colDiffuse;
// final color is the color from the texture
// times the tint color (colDiffuse)
// times the fragment color (interpolated vertex color)
finalColor = texelColor*colDiffuse*fragColor;
}

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