Exemple #1
0
 public void Update(rthsMeshData md, Matrix4x4 trans)
 {
     if (instData && meshData != md)
     {
         instData.Release();
     }
     meshData = md;
     if (!instData)
     {
         instData = rthsMeshInstanceData.Create(md);
     }
     instData.SetTransform(trans);
 }
 public void Update(rthsMeshData md, rthsInstanceFlag flags, Matrix4x4 trans, GameObject go)
 {
     if (instData && meshData != md)
     {
         instData.Release();
     }
     meshData = md;
     if (!instData)
     {
         instData      = rthsMeshInstanceData.Create(md);
         instData.name = go.name;
     }
     instData.transform = trans;
     instData.flags     = flags;
     instData.layer     = go.layer;
 }