MeshInstance constructor

MeshInstance(
  1. GpuPrimitive primitive,
  2. GpuMaterial material,
  3. Matrix4 world
)

primitive with material, placed by world.

Implementation

MeshInstance(GpuPrimitive primitive, this.material, Matrix4 world)
  : _primitive = primitive {
  this.world.setFrom(world);
}