Home Unreal Engine

Advance vertex painting - blending 3 or more textures

Zocky
greentooth
Offline / Send Message
Zocky greentooth
Hey all, i'd like to make a shader in udk, where you could, say, blend between 3 different textures.

Sort of like if i was doing landscape (but without Landscape or Terrain tools).

So you have 3 base textures; Grass, Dirt, Rock.
Each has normal and height map aswell.

So as usual, i'd blend 2 textures using one vertex color channel (blue, for example).

Now i what i'd like to do here, is this.
So, you have bottom layer, the rocks. Rocks show everywhere, unless i paint over it with one of the vertex channels.

Next, i'd like to have first layer, dirt, and for it , i'd use Red channel.
And on top of that, i'd have Grass, controlled via Green (vertex) channel.

So in theory, i could paint any of 3 textures anywhere.

But i'm not really sure how to set up this shader network, if i have more then 2 textures, like 3 in this case.

I use LERP node to blend between 2 textures, but what if i have 3 or even 5? How to do that then?

Tnx!

Replies

Sign In or Register to comment.