Added support for color tinting
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
uniform mat4 M;
|
||||
uniform mat4 V;
|
||||
uniform mat4 P;
|
||||
uniform vec4 Color;
|
||||
|
||||
uniform sampler2D texture0;
|
||||
|
||||
@@ -21,7 +22,7 @@ out vec4 fragmentColor;
|
||||
void main()
|
||||
{
|
||||
vec4 texel = texture2D(texture0, Input.TextureCoordinate);
|
||||
fragmentColor = texel * Input.DiffuseColor;
|
||||
fragmentColor = texel * Input.DiffuseColor * Color;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user