DrawMeshInstanced takes transforms as Buffer.
This commit is contained in:
@@ -58,6 +58,15 @@ function Matrix:set( m )
|
||||
self:copyMatrix( m )
|
||||
end
|
||||
|
||||
function Matrix:arr()
|
||||
return {
|
||||
self[1][1], self[2][1], self[3][1], self[4][1],
|
||||
self[1][2], self[2][2], self[3][2], self[4][2],
|
||||
self[1][3], self[2][3], self[3][3], self[4][3],
|
||||
self[1][4], self[2][4], self[3][4], self[4][4],
|
||||
}
|
||||
end
|
||||
|
||||
function Matrix:serialize()
|
||||
local str = { "Matrix:new({" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user