Fix type a_color to a_alpha

This commit is contained in:
Felipe Alfonso 2017-01-24 09:51:22 -03:00
parent ad52606964
commit b223627935

View file

@ -83,7 +83,7 @@ BlitterBatch.prototype = {
var attribArray = [
CreateAttribDesc(gl, program, 'a_position', 2, gl.FLOAT, false, CONST.VERTEX_SIZE, 0),
CreateAttribDesc(gl, program, 'a_tex_coord', 2, gl.FLOAT, false, CONST.VERTEX_SIZE, 8),
CreateAttribDesc(gl, program, 'a_color', 1, gl.FLOAT, false, CONST.VERTEX_SIZE, 16)
CreateAttribDesc(gl, program, 'a_alpha', 1, gl.FLOAT, false, CONST.VERTEX_SIZE, 16)
];
var vertexArray = new VertexArray(CreateBuffer(gl, gl.ARRAY_BUFFER, gl.STREAM_DRAW, null, vertexDataBuffer.getByteCapacity()), attribArray);