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; }
public void AddGeometry(rthsMeshInstanceData mesh, rthsHitMask rmask, rthsHitMask cmask) { rthsRendererAddGeometry(self, mesh, rmask, cmask); }
[DllImport("rths")] static extern void rthsRendererAddGeometry(IntPtr self, rthsMeshInstanceData mesh, rthsHitMask rmask, rthsHitMask cmask);
public void AddMesh(rthsMeshInstanceData mesh) { rthsRendererAddMesh(self, mesh); }
[DllImport("rths")] static extern void rthsRendererAddMesh(IntPtr self, rthsMeshInstanceData mesh);