Ejemplo n.º 1
0
        internal static void Add(ref MyRenderVoxelMaterialData materialData)
        {
            //  Check if not yet assigned
            MyDebug.AssertRelease(!m_materials.ContainsKey(materialData.Index));

            //  Create and add into array
            MyRenderVoxelMaterial voxelMaterial = new MyRenderVoxelMaterial(materialData);

            m_materials[materialData.Index] = voxelMaterial;
        }
        internal static void Add(ref MyRenderVoxelMaterialData materialData)
        {
            //  Check if not yet assigned
            MyDebug.AssertRelease(!m_materials.ContainsKey(materialData.Index));

            //  Create and add into array
            MyRenderVoxelMaterial voxelMaterial = new MyRenderVoxelMaterial(materialData);
            m_materials[materialData.Index] = voxelMaterial;
        }