Added vertex attributes.

This commit is contained in:
2014-05-07 16:42:14 -04:30
parent e5b9bd681b
commit 51183a2cf1
2 changed files with 10 additions and 10 deletions

View File

@@ -2,16 +2,9 @@
precision mediump float;
#endif
// Light color.
uniform vec3 u_lightColor;
// Diffuse surface color.
uniform vec3 u_diffColor;
// Specular color.
uniform vec3 u_specColor;
// Ambient light color.
uniform vec3 u_ambColor;
// Fragment color received from the vertex shader.
varying vec4 v_color;
void main(){
// TODO: Implement per pixel diffuse lighting.
gl_FragColor = vec4(u_diffColor, 1.0);
gl_FragColor = v_color;
}