import * as GL from '/gl/gl.js' const main = () => { var Renderer = new GL.Renderer() var Scene = new GL.Scene() var Camera = new GL.Camera() var SimpleController = new GL.SimpleController(Camera) var Shader = GL.SimpleShader() var Material = new GL.Material(Shader) var Mesh = GL.Cube() var Cube = new GL.Entity(Mesh) Cube.position.z = 3; Scene.add(Material, Cube) GL.Loop(() => { Renderer.draw(Scene, Camera) Cube.rotation.add(new GL.Vec3(1,1,1)) SimpleController.update(GL.DT) }); } main()