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; }