ACNLPatternTool
ACNLPatternTool copied to clipboard
Fix model and textures so that they apply only to the appropriate mesh
All textures are applied indiscriminately to all meshes in the model. Change it so that the textures target specific meshes.
There's a naming scheme that is associated with the model and textures:
enum TextureType {
Normal = "Nrm",
Light = "Alb",
Rough = "Crv",
Mix = "Mix",
}
type Texture = string; // url of the texture
type ModelName = string; // e.g. FtrMyDesignEasel
type MeshPart = string; // e.g. mBody | mTop
type TextureName = `${MeshPart}_${TextureType}` // e.g. mBody_Crv
type MeshId = `${ModelName}_${MeshPart}` // e.g. FtrMyDesignEasel_mBody
Note that the model folders have been renamed under injected.