blender/tests/files/render/node_inlining/switch.blend
Jacques Lucke b4174fbb1b Shader Nodes: support Switch node
This adds support for the Switch node that is already used in Geometry
Nodes and the compositor. Implementation wise this is  very similar to
#162178.

With this, the three node systems are unified when it comes to switch nodes. They all support the Switch, Index Switch and Menu Switch node.

Like for the Index Switch node, when the condition is a constant, the
switch is completely optimized away. Otherwise it is replaced by a math
and mix node before being passed to the actual render engine.

Pull Request: https://projects.blender.org/blender/blender/pulls/162417
2026-08-07 21:23:32 +02:00

3 lines
131 B
Text

version https://git-lfs.github.com/spec/v1
oid sha256:04544c032733585c5f949f51f105ef948878af2315a5788ae725bcd0d62d8bc7
size 981401