Correct frag shader when using texture + color

This commit is contained in:
Antoine
2021-05-21 19:51:29 +02:00
parent 770d134722
commit 574e31e02d
3 changed files with 6 additions and 12 deletions

View File

@ -9,5 +9,5 @@ uniform sampler2D texture1;
void main()
{
FragColor = texture(texture1, texCoord) * color;
FragColor = mix(texture(texture1, texCoord), color, 0.5);
}