Model.Model
void Model(Mesh mesh, Material material)
Creates a single mesh subset Model using the indicated Mesh and Material! An id will be automatically generated for this asset.
Mesh mesh | Any Mesh asset. |
Material material | Any Material asset. |
void Model()
Creates an empty Model object with an automatically generated id. Use the AddSubset methods to fill this model out.
void Model(string id, Mesh mesh, Material material)
Creates a single mesh subset Model using the indicated Mesh and Material!
string id | Uses this as the id, so you can Find it later. |
Mesh mesh | Any Mesh asset. |
Material material | Any Material asset. |
Examples
Model model = new Model();
model.AddNode("Cube",
Matrix .Identity,
Mesh .GenerateCube(Vec3.One),
Default.Material);
Found an issue with these docs, or have some additional questions? Create an Issue on Github!