How to Combine Two Shaders in Blender
In Blender, combining two shaders allows you to create complex materials by blending different surface properties, such as mixing a metallic finish with a diffuse texture or layering an emission effect over a base material. This guide covers how to use the Mix Shader and Add Shader nodes in the Shader Editor to blend materials seamlessly using factor inputs and texture masks.
Using the Mix Shader Node
The Mix Shader node blends two shaders based on a numerical value or a black-and-white texture mask.
- Select your object and open the Shader Editor.
- Press
Shift + A, go to Shader, and select Mix Shader. Place it between your existing shader nodes and the Material Output node. - Connect the output socket of your first shader into the top Shader input of the Mix Shader node.
- Connect the output socket of your second shader into the bottom Shader input of the Mix Shader node.
- Connect the Shader output socket of the Mix Shader to the Surface input of the Material Output node.
- Adjust the Fac (Factor) slider:
- 0.0 displays 100% of the top shader.
- 1.0 displays 100% of the bottom shader.
- 0.5 creates an equal 50/50 mix of both shaders.
Controlling the Blend with a Texture Mask
To blend shaders in specific areas—such as adding rust to the edges of a metal surface—you can drive the blend factor using a texture:
- Add a texture node, such as a Noise Texture or an
Image Texture (
Shift + A> Texture). - (Optional) Pass the texture through a ColorRamp
node (
Shift + A> Converter > ColorRamp) to control the contrast of the blend. - Connect the output of the texture or ColorRamp directly into the Fac socket of the Mix Shader node.
- Black areas of the texture mask will show the top shader, while white areas will show the bottom shader.
Using the Add Shader Node
The Add Shader node adds the light and surface calculations of two shaders together rather than cross-fading between them. This is primarily used for adding volumetric effects, secondary glass reflections, or emission glows to an existing material.
- Press
Shift + A, go to Shader, and select Add Shader. - Connect the outputs of both shaders into the input sockets of the Add Shader node.
- Connect the output of the Add Shader node to the Material Output node.
Note: Use the Add Shader node carefully. Because it combines the light output of both shaders, it can violate physically based rendering (PBR) rules and make materials appear unnaturally bright if used incorrectly.