Material Blend Modes

A look at Material Blend Modes and how they affect the rendering of a Material.

Blend Modes describe how the output of the current Material will blend over what is already being drawn in the background. Put more technically, it allows you to control how the engine will combine this Material (Source color) with what is already in the frame buffer (Destination color) when this Material is rendered in front of other pixels.

Blend Mode options are found in the Details panel with the rest of the base Material Properties:

Blend Modes dropdown menu

This document uses a sphere placed between the camera and a wall to demonstrate the various Blend Modes. By changing the Blend Mode on the sphere Material you can see how the object blends with the pixels behind it.

Blend Modes demo setup

Opaque

The Opaque Blend Mode is the most straightforward, and probably the one you will use most often. It defines a surface through which light neither passes nor penetrates. This is perfect for most plastics, metals, stone, and the larger percentage of other surface types. From the perspective of the camera, the golden sphere completely occludes the wall behind it.

Opaque Blend Mode

Masked

The Masked Blend Mode is used when you need to selectively control visibility in a binary (on/off) fashion. For example, consider a Material that simulates a chain link fence or grate. You will have some areas that look solid while others are invisible. Such Materials are perfect for the Masked Blend Mode.

A Masked Material graph is shown below, with a black and white striped texture plugged into the Opacity Mask input. White parts of the mask are rendered, while black parts are invisible. There are no intermediate levels of opacity when using a Masked Material.

Masked Material Graph

Here is that Material from the camera's perspective:

Masked Material

It is important to keep in mind the difference between transparent and not rendered. A transparent surface, such as glass, still interacts with light in the form of reflections (specularity). Pixels that are culled in Masked mode simply do not draw; you will not see any reflections in those areas. If you want to retain reflections or specular aspects, you would do well to use the Translucent Blend Mode, or consider making a Layered Material.

Further, since these features don't render in the masked area, they aren't calculated at all, leading to performance savings on the GPU.

Opacity Clip Mask

When using Masked Blend Mode, you need to pay special attention to the Opacity Mask Clip Value property. This property holds a 0-1 scalar value which controls what value of the opacity mask texture will be used as a cutoff point, beyond which all darker pixels will not render.

Opacity Mask Clip Value (Drag the slider to preview.)

In the example above, the Material has its Two Sided property set to True (checked), which is why you can see the inside of the box.

Also, despite the interactive example shown here, the Opacity Mask Clip Value property is not designed to be changed at runtime.

Translucent

The Translucent Blend Mode is used for objects that require some form of transparency. This differs from the Masked Blend Mode in that it allows varying levels of translucency.

Translucent Material Graph

This Blend Mode works by taking in an Opacity value or texture and applying it to the surface such that black areas are completely transparent, white areas are completely opaque, and the varying shades of gradation between result in corresponding transparency levels. In the example, a black to white gradient is plugged into the Opacity input, resulting in a sphere that is fully transparent at the top of the mesh and gradually reaches full opacity at the bottom.

Translucent gradient on a sphere

An important consideration when using Translucent Materials is that they do not currently support specularity. This means that you will see no reflections along the surface. However, such reflections can be faked using a Cubemap in a node network similar to this. The Cubemap texture is simply added on top of the Base Color.

Additive

The Additive Blend Mode simply takes the pixels of the Material and adds them to the pixels of the background. This is very similar to the Linear Dodge (Add) Blend Mode in Photoshop. This means that there is no darkening; since all pixel values are added together, blacks will just render as transparent. This Blend Mode is useful for various special effects such as fire, steam, or holograms.

Additive Material Graph

As with the Translucent Blend Mode, this Blend Mode does not respect specularity (i.e. reflections). The additive nature of the blending probably means you will not use it anyway, but it is possible to simulate a reflection-like effect using the Cubemap method shown above in the Translucent section.

In the image below a second sphere was added to the scene. Note that where the two spheres overlap, the pixels are added together and therefore brightened.

Additive Material Example

One drawback of Additive Materials is that they are often difficult to see against light colored backgrounds. A side view of the spheres demonstrates this.

Additive Material side view

A solution is to use the AlphaComposite Blend Mode instead, with a texture that has a premultiplied alpha channel. This improves saturation and visibility in bright scenes.

Modulate

The Modulate Blend Mode multiplies the value of the Material against the pixels of the background. The behavior is very similar to the Multiply Blend Mode in Photoshop, and produces a darkening effect.

Modulate Material Graph

In the graph above, the Material Shading Model is set to Unlit and the Blend Mode to Modulate. A Constant3 Vector is plugged into the Emissive input to define the surface color.

Modulate Material Example

Notice again that with multiple spheres, the pixels that overlap are multiplied together and become darker.

The Modulate blend mode is best suited for certain particle effects, but care must be taken as it does not support lighting or Separate Translucency.

AlphaComposite

AlphaComposite is used in Materials that have textures with premultiplied alpha, meaning the RGB color channels were premultiplied by the alpha channel before the image was stored. The AlphaComposite Blend Mode is a useful alternative to the Additive or Translucent Blend Modes for brightly colored particles and VFX.

Compared to additive blending, AlphaComposite Materials have better visiblity and maintain more color saturation against light colored backgrounds. Bright regions of the Material are less likely to blow out to pure white due to additive build-up.

The video below shows an AlphaComposite Material with an opacity parameter. At low opacity levels the Material works more like an additive blend, whereas at opacity levels 0.5 and higher it resembles Translucent blending, creating an interesting transitional effect near the edges of the mask.

References

AlphaHoldout

The AlphaHoldOut blend mode lets you "hold out" the alpha of a Material, punching a hole through the objects directly behind it in view space. The following image shows the camera and scene layout for an AlphaHoldout implementation.

  1. The camera.

  2. A Static Mesh in the foreground acts as the "hole-punching" object. The AlphaHoldout Material is applied to this mesh. This Material must use the Unlit Shading Model.

  3. A receiving surface (which you intend to punch a hole through) is placed behind the AlphaHoldout object; in this case, a brick wall. The Material on the receiving surface MUST use either the Translucent, Additive, Modulate, or AlphaComposite Blend Modes. An AlphaHoldout Material cannot act upon an Opaque Material.

  4. The background of the scene, which will be visible through the hole.

From the camera's perspective, you will see a transparent hole through the receiving surface, making the objects behind it visible.

AlphaHoldout Example

Because the AlphaHoldOut material is on a separate Static Mesh Asset, you can easily move it around in-editor or animate it in game.

Blend Mode Forumulas

Mode

Description

BLEND_Opaque

Final color = Source color. This means that the Material will draw on top of the background. This blend mode is compatible with lighting.

BLEND_Masked

Final color = Source color if OpacityMask > OpacityMaskClipValue, otherwise the pixel is discarded. This blend mode is compatible with lighting.

BLEND_Translucent

Final color = Source color * Opacity + Dest color * (1 - Opacity). This blend mode is NOT compatible with dynamic lighting.

BLEND_Additive

Final color = Source color + Dest color. This blend mode is NOT compatible with dynamic lighting.

BLEND_Modulate

Final color = Source color x Dest color. This blend mode is NOT compatible with dynamic lighting, or fog, unless this is a decal material.

BLEND_AlphaComposite

Final Color = Source Color + Dest Color * (1 - Source Opacity).

BLEND_AlphaHoldout

Final Color = Dest Color * (1 - Source Opacity). This blend mode is **NOT** compatible with dynamic lighting.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Cancel