x


blending textures

Hi,

how about textures? Can I easily blend 2 textures? Say I have 1 texture for the face of an avatar, and then I have a alpha texture (like redish in the cheeks). Can I blend both to make the appearance the guy is blushing or something?

thanks!

more ▼

asked May 16, 2012 at 10:09 PM

khamael-2 gravatar image

khamael-2
18 7 6 8

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

This can be achieved using a custom shader which interpolates between the two textures using the alpha component of the redish cheeks with a slider to control the characters blushing.

I assume that you want this for a dynamic effect, because if the redish cheeks are fixed then I would recommend painting it straight onto the texture.

Check out JessyUVs videos on YouTube: http://www.youtube.com/playlist?list=PL31F6A116DCCC9F61&feature=plcp

Jessy explains the fundamentals of writing custom shaders fantastically. Without these videos I wouldn't be able to write any sort of shaders! I am eternally grateful to Jessy (if he's reading) :-)

more ▼

answered May 16, 2012 at 11:58 PM

numberkruncher gravatar image

numberkruncher
4.4k 141 112 134

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x572
x409
x83

asked: May 16, 2012 at 10:09 PM

Seen: 1474 times

Last Updated: May 16, 2012 at 11:58 PM