Пример #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;
 }
Пример #3
0
 public void AddGeometry(rthsMeshInstanceData mesh, rthsHitMask rmask, rthsHitMask cmask)
 {
     rthsRendererAddGeometry(self, mesh, rmask, cmask);
 }
Пример #4
0
 [DllImport("rths")] static extern void rthsRendererAddGeometry(IntPtr self, rthsMeshInstanceData mesh, rthsHitMask rmask, rthsHitMask cmask);
Пример #5
0
 public void AddMesh(rthsMeshInstanceData mesh)
 {
     rthsRendererAddMesh(self, mesh);
 }
Пример #6
0
 [DllImport("rths")] static extern void rthsRendererAddMesh(IntPtr self, rthsMeshInstanceData mesh);