Skip to content

Fix model and textures so that they apply only to the appropriate mesh #37

Description

@DamSenViet

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions