Esempio n. 1
0
        public override byte[] BakeBumpOutput(IBakeTextureInputCache cache, BakeTarget target)
        {
            switch (target)
            {
            case BakeTarget.UpperBody:
                if (m_UpperBump == null)
                {
                    if (!cache.TryGetBump(m_UpperTextureId, target, out m_UpperBump))
                    {
                        m_UpperBump = BaseBakes.UpperBodyBump;
                    }
                    BlendBump(m_UpperBump, BaseBakes.JacketLengthUpperAlpha, m_JacketUpperLengthBump);
                    BlendBump(m_UpperBump, BaseBakes.JacketOpenUpperAlpha, m_JacketUpperOpenBump);
                    BlendBump(m_UpperBump, BaseBakes.ShirtSleeveAlpha, m_JacketSleeveLengthBump);
                    BlendBump(m_UpperBump, BaseBakes.ShirtCollarFrontAlpha, m_JacketCollarFrontBump);
                    BlendBump(m_UpperBump, BaseBakes.ShirtCollarBackAlpha, m_JacketCollarBackBump);
                }
                return(m_UpperBump);

            case BakeTarget.LowerBody:
                if (m_LowerBump == null)
                {
                    if (!cache.TryGetBump(m_LowerTextureId, target, out m_LowerBump))
                    {
                        m_LowerBump = BaseBakes.LowerBodyBump;
                    }
                    BlendBump(m_LowerBump, BaseBakes.JacketLengthLowerAlpha, m_JacketLowerLengthBump);
                    BlendBump(m_LowerBump, BaseBakes.JacketOpenUpperAlpha, m_JacketLowerOpenBump);
                }
                return(m_LowerBump);

            default:
                return(null);
            }
        }
Esempio n. 2
0
 public override byte[] BakeBumpOutput(IBakeTextureInputCache cache, BakeTarget target)
 {
     if (target == BakeTarget.Skirt)
     {
         if (m_Bump == null && !cache.TryGetBump(m_TextureId, target, out m_Bump))
         {
             m_Bump = new byte[512 * 512];
         }
         return(m_Bump);
     }
     return(null);
 }
Esempio n. 3
0
 public override byte[] BakeBumpOutput(IBakeTextureInputCache cache, BakeTarget target)
 {
     if (target == BakeTarget.LowerBody)
     {
         if (m_LowerBump == null)
         {
             if (!cache.TryGetBump(m_TextureId, target, out m_LowerBump))
             {
                 m_LowerBump = BaseBakes.LowerBodyBump;
             }
             BlendBump(m_LowerBump, BaseBakes.ShoeHeightAlpha, m_SocksLengthBump);
         }
         return(m_LowerBump);
     }
     return(null);
 }
Esempio n. 4
0
 public override byte[] BakeBumpOutput(IBakeTextureInputCache cache, BakeTarget target)
 {
     if (target == BakeTarget.UpperBody)
     {
         if (m_BumpGloves == null)
         {
             if (!cache.TryGetBump(m_GlovesTextureId, target, out m_BumpGloves))
             {
                 m_BumpGloves = BaseBakes.UpperBodyBump;
             }
             BlendBump(m_BumpGloves, BaseBakes.GlovesFingersAlpha, m_GlovesFingersBump);
             BlendBump(m_BumpGloves, BaseBakes.GlovesLengthAlpha, m_GlovesLengthBump);
         }
         return(m_BumpGloves);
     }
     return(null);
 }
Esempio n. 5
0
 public override byte[] BakeBumpOutput(IBakeTextureInputCache cache, BakeTarget target)
 {
     if (target == BakeTarget.LowerBody)
     {
         if (m_PantsBump == null)
         {
             if (!cache.TryGetBump(m_PantsTextureId, target, out m_PantsBump))
             {
                 m_PantsBump = BaseBakes.LowerBodyBump;
                 MultiplyBump(m_PantsBump, m_Displace);
             }
             BlendBump(m_PantsBump, BaseBakes.PantsLengthAlpha, m_LengthBump);
             BlendBump(m_PantsBump, BaseBakes.PantsWaistAlpha, m_WaistBump);
         }
         return(m_PantsBump);
     }
     return(null);
 }
 public override byte[] BakeBumpOutput(IBakeTextureInputCache cache, BakeTarget target)
 {
     if (target == BakeTarget.UpperBody)
     {
         if (m_UpperBump == null)
         {
             if (!cache.TryGetBump(m_TextureId, target, out m_UpperBump))
             {
                 m_UpperBump = BaseBakes.UpperBodyBump;
             }
             BlendBump(m_UpperBump, BaseBakes.ShirtSleeveAlpha, m_SleeveLengthBump);
             BlendBump(m_UpperBump, BaseBakes.ShirtBottomAlpha, m_BottomLengthBump);
             BlendBump(m_UpperBump, BaseBakes.ShirtCollarFrontAlpha, m_CollarFrontBump);
             BlendBump(m_UpperBump, BaseBakes.ShirtCollarBackAlpha, m_CollarBackBump);
         }
         return(m_UpperBump);
     }
     return(null);
 }