public virtual void Draw() { gl.Enable(WebGLRenderingContextBase.DEPTH_TEST); gl.Viewport(0, 0, canvasWidth, canvasHeight); gl.ClearColor(clearColor.X, clearColor.Y, clearColor.Z, clearColor.W); gl.Clear(WebGLRenderingContextBase.COLOR_BUFFER_BIT); gl.UniformMatrix4fv(pMatrixUniform, false, projectionMatrix.ToArray()); gl.UniformMatrix4fv(vMatrixUniform, false, viewMatrix.ToArray()); gl.UniformMatrix4fv(wMatrixUniform, false, worldMatrix.ToArray()); gl.DrawElements(WebGLRenderingContextBase.TRIANGLES, indices.Length, WebGLRenderingContextBase.UNSIGNED_SHORT, 0); }