Mix Shader

Rollover images to view Mix Weight image


The mix_shader shader is used to blend or add two shaders (including light AOVs). It returns a linear interpolation of shader1 and shader2 according to the mix_weight attribute. A mix_weight value of 0 outputs shader1, a value of 1 outputs shader2, and a value of 0.5 mixes evenly between shader1 and shader2

 

Mode

The mode by which the shaders are layered. Choose between blend or add.

The add mode can break energy conservation if not used carefully. It is intended for adding two volume shaders, or two shaders that only emit light while adding two surface shaders like standard_surface is not physically correct. 


Mix

Controls the amount of blending between shaders.

You may need to insert a Range shader when connecting a bitmap to Mix.

You can connect a texture to the mix_weight to control the blending between shader1 and shader2.

Shader 1

Input for shader one.


Shader 2

Input for shader two.


 

 

Mix shaders used in shading network

 

 

Workflow Example

Animated Facing Ratio shader -> Mix Weight. Snow shader -> shader1, Mountain shader ->shader2.

  • No labels