this.program = initShaders(this.gl, "vertex-shader","fragment-shader");
attribute vec4 vPosition; void main() { gl_PointSize = 3.0; gl_Position = vPosition; }
let vPosition = this.gl.getAttribLocation(this.program, "vPosition");
void main() { gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 ); }
<script type="text/javascript" src="../Common/webgl-utils.js"></script> <script type="text/javascript" src="../Common/initShaders.js"></script> <script type="text/javascript" src="../Common/MV.js"></script>