Use explicit shader attributes.

This commit is contained in:
Paul Chote
2015-12-19 23:57:52 +00:00
parent 788def1c31
commit be29ec5342
11 changed files with 64 additions and 38 deletions

View File

@@ -1,5 +1,7 @@
uniform sampler2D DiffuseTexture;
varying vec4 vTexCoord;
void main()
{
gl_FragColor = texture2D(DiffuseTexture,gl_TexCoord[0].st);
gl_FragColor = texture2D(DiffuseTexture, vTexCoord.st);
}