Drawing Options |
---|
Show lines between vertices Show vertices |
Primitive Type |
POINTS LINES LINE_STRIP LINE_LOOP TRIANGLES TRIANGLE_STRIP TRIANGLE_FAN |
Hidden Surface Removal |
gl.enable(gl.CULL_FACE); //disabled by default gl.frontFace(gl.CCW); //default gl.frontFace(gl.CW); |
Line and Point Size |
// Controls uniform that sets gl_PointSize in vertex shader gl.uniform1f(state.pointSize, 1); // Controls lineWidth - not supported by all browsers. Try Safari on Mac... gl.lineWidth(1); |