Преглед на файлове

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;
}

Зареждане…
Отказ
Запис