예제 #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;
 }