UNPKG

332 BJavaScriptView Raw
1import { Geometry } from "../geometry/Geometry.mjs";
2class Quad extends Geometry {
3 constructor() {
4 super(), this.addAttribute("aVertexPosition", new Float32Array([
5 0,
6 0,
7 1,
8 0,
9 1,
10 1,
11 0,
12 1
13 ])).addIndex([0, 1, 3, 2]);
14 }
15}
16export {
17 Quad
18};
19//# sourceMappingURL=Quad.mjs.map