Beispiel #1
0
        public void SetMeshDirty(Mesh mesh)
        {
            MeshVertexChunkCollection chunkCollection = null;

            if (_meshToVChunkCollection.TryGetValue(mesh, out chunkCollection))
            {
                chunkCollection.FromMesh(mesh);
            }
        }
Beispiel #2
0
        private bool CreateMeshVertChunkCollection(Mesh mesh)
        {
            var meshVertexChunkCollection = new MeshVertexChunkCollection();

            if (!meshVertexChunkCollection.FromMesh(mesh))
            {
                return(false);
            }

            _meshToVChunkCollection.Add(mesh, meshVertexChunkCollection);
            return(true);
        }