|
|
|
@ -60,6 +60,15 @@ function main() {
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
program = buildShaderProgram(shaderSet);
|
|
|
|
program = buildShaderProgram(shaderSet);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var a_Position = gl.getAttribLocation(program, 'a_Position');
|
|
|
|
|
|
|
|
if (a_Position < 0) {
|
|
|
|
|
|
|
|
console.log('couldnt get position');
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gl.vertexAttrib3f(a_Position, 0.0, 0.5, 0.0);
|
|
|
|
|
|
|
|
|
|
|
|
gl.useProgram(program);
|
|
|
|
gl.useProgram(program);
|
|
|
|
|
|
|
|
|
|
|
|
gl.clearColor(0.5, 0.0, 0.0, 1.0);
|
|
|
|
gl.clearColor(0.5, 0.0, 0.0, 1.0);
|
|
|
|
|