Skip to content

Commit

Permalink
Use the vertex color as part of the base shader in GLSL330 (#4431)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffM2501 authored Oct 24, 2024
1 parent 6c3b1fa commit 728ccc9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/shaders/resources/shaders/glsl330/base.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 728ccc9

Please sign in to comment.