Added Fly Camera and Vertex Colors

This commit is contained in:
viktorljung
2015-12-01 15:56:26 +01:00
parent 04d10bf7af
commit 07d037ae57
7 changed files with 95 additions and 14 deletions
+5 -3
View File
@@ -8,10 +8,12 @@ uniform sampler2D texture0;
in VertexData{
vec3 VertexPosition;
vec3 Position;
vec3 Normal;
vec2 TextureCoordinate;
} Input;
vec4 DiffuseColor;
}Input;
out vec4 fragmentColor;
@@ -19,7 +21,7 @@ out vec4 fragmentColor;
void main()
{
vec4 texel = texture2D(texture0, Input.TextureCoordinate);
fragmentColor = texel;
fragmentColor = texel * Input.DiffuseColor;
}