Beispiel #1
0
 public void Apply(MeshAndMaterials model, bool duplicateMaterial = true, bool duplicateMesh = true)
 {
     if (duplicateMaterial)
     {
         thisRenderer.materials = model.materials;
     }
     else
     {
         thisRenderer.sharedMaterials = model.materials;
     }
     if (duplicateMesh)
     {
         thisFilter.mesh = model.mesh;
     }
     else
     {
         thisFilter.sharedMesh = model.mesh;
     }
 }
Beispiel #2
0
 public ModelInfo(MeshAndMaterials thisMeshAndMaterials, Matrix4x4 thisMatrix)
 {
     this.thisMeshAndMaterials = thisMeshAndMaterials;
     this.thisMatrix           = thisMatrix;
 }