File: mix.rst

package info (click to toggle)
blender-doc 4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 253,604 kB
  • sloc: python: 13,030; javascript: 322; makefile: 113; sh: 107
file content (70 lines) | stat: -rw-r--r-- 1,746 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.. _bpy.types.ShaderNodeMix:
.. Editor's Note: This page gets copied into:
.. - :doc:`</modeling/geometry_nodes/utilities/mix>`
.. - :doc:`</render/shader_nodes/color/mix>`

********
Mix Node
********

.. --- copy below this line ---

The *Mix Node* mixes values, colors and vectors inputs
using a factor to control the amount of interpolation.
The *Color* mode has additional blending modes.

.. figure:: /images/render_shader-nodes_shader_mix_node.jpg
   :align: center
   :alt: Mix Node.


Inputs
======

Factor
   Controls the amount of mixing between the A and B inputs.
A/B
   The two inputs that are mixed together.


Properties
==========

Data Type
   The data type that is used for mixing.
   The node supports float, vector, color, and rotation data types.

Factor Mode (Vector only)
   The factor mode can be set to *Uniform* and *Non-Uniform*.
   In uniform mode, a single float controls the factor.
   In non-uniform mode, a vector controls the factor for
   each XYZ channel separately.

Mix (Color only)
   The Blend modes can be selected in the select menu.
   See :term:`Color Blend Modes` for details on each blending mode.

   Add, Subtract, Multiply, Screen, Divide, Difference,
   Darken, Lighten, Overlay, Color Dodge, Color Burn,
   Hue, Saturation, Value, Color, Soft Light, Linear Light

Clamp Factor
   Limit the factor value between 0.0 and 1.0. If this option is
   unchecked then the node operates using *Extrapolation*.

Clamp Result (Color only)
   Limit the Result to the range between 0.0 and 1.0.

Outputs
=======

Result
   Output the result of the mix using the data type selected.


Examples
========

See the Color > Mix page for additional examples:
:doc:`Mix Color Node </render/shader_nodes/color/mix>`