-
Alexander Rose authoredAlexander Rose authored
plane.ts 594 B
import { Primitive } from './primitive';
/**
* Copyright (c) 2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
const plane: Primitive = {
vertices: new Float32Array([
-0.5, 0.5, 0,
0.5, 0.5, 0,
-0.5, -0.5, 0,
0.5, -0.5, 0
]),
normals: new Float32Array([
0, 0, 1,
0, 0, 1,
0, 0, 1,
0, 0, 1
]),
indices: new Uint32Array([
0, 2, 1,
1, 2, 3
])
}
export function Plane(): Primitive {
return plane
}