internal static void Add(ref MyRenderCustomMaterialData materialData)
        {
            //  Check if not yet assigned
            MyDebug.AssertRelease(!m_materials.ContainsKey(materialData.Index));

            //  Create and add into array
            var voxelMaterial = new MyRenderCustomMaterial(materialData);
            m_materials[materialData.Index] = voxelMaterial;
        }
Пример #2
0
        internal static void Add(ref MyRenderCustomMaterialData materialData)
        {
            //  Check if not yet assigned
            MyDebug.AssertRelease(!m_materials.ContainsKey(materialData.Index));

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

            m_materials[materialData.Index] = voxelMaterial;
        }