How to apply skin tone to a model

alt text

Hello guys! I’m learning about shader, and i wanna know how to apply skin tone to a model.

I have a model with 4 texture files
A : Diffuse B : Normal C : Mask D : CSTM

(This model is exported from TERA Online game)

As the picture has showed, i wanna apply skin tone to only the marked (red) area in texture A.

Assume that i’m using Unity’s default Bumped Diffuse shader, what should i edit to apply skin tone? or is there any shader that can do the job?

Thank you in advanced!

Never really done this before so I’m going to take a guess. Cutout the skin in the normal and diffuse maps in a your chosen photo editor (Photoshop,Gimp, or whatever) and paste it into a two new texture files (one for the diffuse, one for normal). Make sure the skin is in the same place as where you cut it out from.You should be left with a diffuse for clothing, a diffuse for skin, a normal for clothing, a normal for skin. Save them and keep the image size and transparency.

Now in unity go to your model and into mesh render in the inspector. Open the materials tab and change the size to 2.

Import your textures, make sure alpha to transparency is checked as you import them. Make two materials one for the skin and one for the clothing. Choose the shader of transparency–> bumped diffuse for both. Put the textures in the materials accordingly.

Now simply drag the materials onto the model. You can change the skin tone by adjusting the tint on the skin material.

Again never did this before and doing this by only guessing. So… good luck.