Use the vertex color as part of the base shader in GLSL330 (#4431)
This commit is contained in:
parent
6c3b1fa1de
commit
728ccc96bc
1 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,9 @@ void main()
|
||||||
|
|
||||||
// NOTE: Implement here your fragment shader code
|
// 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…
Add table
Add a link
Reference in a new issue