Remove ball (meshes must be loaded from file)

This commit is contained in:
Dane Johnson
2021-01-20 17:05:59 -06:00
parent 0c9935a3c0
commit 391060d9ba
10 changed files with 35 additions and 76 deletions

19
scripting/lua/helpers.i Normal file
View File

@@ -0,0 +1,19 @@
%module helpers
%luacode {
function couch.TexturedMesh(meshfile, ...)
local mesh = couch.Mesh.FromFile(meshfile)
for i, texturefile in ipairs({...}) do
local material = couch.Material()
material.usesTex = true
material.tex = couch.Texture.FromFile(texturefile)
mesh:SetMaterial(i - 1, material)
end
return mesh
end
} // luacode
// Local Variables:
// mode: poly-swig
// End: