MeshInstance constructor
MeshInstance(
- GpuPrimitive primitive,
- GpuMaterial material,
- Matrix4 world
primitive with material, placed by world.
Implementation
MeshInstance(GpuPrimitive primitive, this.material, Matrix4 world)
: _primitive = primitive {
this.world.setFrom(world);
}