示例#1
0
 private static void SetClothingTextures(Material clothingMaterial, ClothingTextures clothingTexture)
 {
     // Base Color
     clothingMaterial.SetTexture(BASE_COLOR, clothingTexture.baseColor);
     // Normal Map
     clothingMaterial.SetTexture(NORMAL_MAP, clothingTexture.normal);
     // Roughness Metallic AO
     clothingMaterial.SetTexture(RMA_MAP, clothingTexture.rma);
 }
示例#2
0
 public ClothingData(Mesh m, Texture2D bc, Texture2D nm, Texture2D rma, bool isShoes = false)
 {
     this.mesh     = m;
     this.textures = new ClothingTextures(bc, nm, rma);
     this.isShoes  = isShoes;
 }