import { getAssetFamily } from './asset-naming' export type AssetCategory = 'color' | 'roughness' | 'normal' | 'metalness' | 'assets' export function classifyAssetCategory(filename: string): AssetCategory { const name = filename.replace(/\.[^.]+$/, '') const family = getAssetFamily(name.split('_')[0]) if (family === 'color' || family === 'diffuse') { return 'color' } if (family === 'roughness') { return 'roughness' } if (family === 'normal') { return 'normal' } if (family === 'metalness') { return 'metalness' } return 'assets' }