Browse Source

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

pull/4432/head
Jeffery Myers 2 months ago
committed by GitHub
parent
commit
728ccc96bc
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      examples/shaders/resources/shaders/glsl330/base.fs

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

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

Loading…
Cancel
Save