Skip to content

Commit f90bd97

Browse files
JeffM2501psxdev
authored andcommitted
Use the vertex color as part of the base shader in GLSL330 (raysan5#4431)
1 parent 565de46 commit f90bd97

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)