Create a Material for 2-Way Texture Blending

This page describes how to create a material for 2-way (alpha) texture blending.

Windows
MacOS
Linux

Here is an example of how you might use the vertex alpha value to blend between two diffuse textures in the Material Editor.

2-WayMaterial.png

This Material handles the following:

  • Modulates diffuse color by the painted vertex color (RGB)

  • Blends between two separate diffuse textures (Diffuse, Diffuse2) using the blend weight stored in the vertex alpha channel (A)

  • Blends between two separate normal textures (Normal, Normal2) using the blend weight stored in the vertex alpha channel (A)

This is a pretty simple setup that enables a user to choose between two blended textures (by painting alpha), then to tint those textures by painting the vertex color. Here is an application in which the textures have been blended.

  1. First, the Material needs to be applied and the Mesh Paint tool needs to be set to Blend Weights mode, with a Texture count setting of 2.

    2-Way_Setting.png

  2. Next, the user would begin by painting with alpha to designate where each texture will be placed. This is what the object looks like when viewed in Alpha mode:

    2-Way_Alpha.png

  3. Here is the result as seen without any view modes.

    2-Way_Blended.png

  4. At this point, the user could then start painting on some colors as shown below (seen in RGB mode).

    2-Way_RGB.png

  5. Which, when modulated with the blended textures, would appear as shown below.

    2-Way_Result.png

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback