import { Geometry } from "../Geometry";
import { Sprite3dMaterial } from "../materials";
import { Mesh3D } from "../Mesh3D";


export class Sprite3D extends Mesh3D {
    constructor(material: Sprite3dMaterial) {
        var vertices = [
            - 0.5, - 0.5, 0,// 0, 0,
            0.5, - 0.5, 0,// 1, 0,
            0.5, 0.5, 0, //1, 1,
            - 0.5, 0.5, 0,// 0, 1
        ];
        var uvs = [
            0, 1,
            1, 1,
            1, 0,
            0, 0
        ]
        //@ts-ignore
        super(new Geometry(vertices, [0, 1, 2, 0, 2, 3], null, null,uvs), material);
    }
}