ring/models/plane.lua

26 lines
442 B
Lua

local lg = love.graphics
return lg.newMesh(
{--attributes
{"VertexPosition", "float", 4},
{"VertexColor", "float", 3},
{"VertexTexCoord", "float", 2},
},
{--vertices
{-25, 0, -25, 1,
1, 1, 1,
0, 0, },
{25, 0, -25, 1,
1, 1, 1,
25, 0, },
{25, 0, 25, 1,
1, 1, 1,
25, 25, },
{ -25, 1, 25, 1,
1, 1, 1,
0, 25, },
},
"fan",
"static"
)