How to blend two textures.

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

How to blend two textures.

Post by Magnet »

Please tell me about blending.
I have two textures. How to blend them?
Please paste small code.
Please...!
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Look at the documentation for the various materials. Or you could do it in a shader.
Image
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

Post by Magnet »

I have not found ^-(
Plese help me.
Magnet
Posts: 101
Joined: Wed Sep 27, 2006 7:32 pm

Post by Magnet »

Anyone?
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Now that I think of it, there are no built in materials that support color blending, only alpha blending.

The easiest way to implement is to use shaders to do your custom blending. You can look at examples on how to create shaders, and then if you still have questions about how color blending works I can point you in the right direction.

I'm not just going to give you code and shaders to do this, cause then you won't learn, and will just ask again when you need something else. :)
Image
Post Reply