Skip to content

Commit 728ccc9

Browse files
authored
Use the vertex color as part of the base shader in GLSL330 (#4431)
1 parent 6c3b1fa commit 728ccc9

File tree

1 file changed

+4
-1
lines changed
  • examples/shaders/resources/shaders/glsl330

1 file changed

+4
-1
lines changed

examples/shaders/resources/shaders/glsl330/base.fs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ void main()
2020

2121
// NOTE: Implement here your fragment shader code
2222

23-
finalColor = texelColor*colDiffuse;
23+
// final color is the color from the texture
24+
// times the tint color (colDiffuse)
25+
// times the fragment color (interpolated vertex color)
26+
finalColor = texelColor*colDiffuse*fragColor;
2427
}
2528

0 commit comments

Comments
 (0)