Houdini 21.0 Nodes VOP nodes

Karma Ray Switch VOP node

Evaluate a color or an input based on ray-type.

On this page
Since 21.0

Evaluates different parts of shading network based on current ray-type. It’s useful for optimization patterns shading trees for different ray-types.

Tip

For more information on how to use the Karma Ray Switch VOP, please read the The Karma Ray Switch workflow guide with examples.

Parameters

Camera

Camera ray-type color.

Shadow

Shadow ray-type color.

Diffuse

Diffuse reflection ray-type color.

Glossy Reflection

Glossy reflection ray-type color.

SSS

Diffuse transmission and sss ray-type color.

Glossy Transmission

Glossy transmission ray-type color.

Volume

Volume ray-type color.

Inputs

camera

Camera ray-type input.

shadow

Shadow ray-type input.

diffuse

Diffuse reflection ray-type input.

glossy_reflection

Glossy reflection ray-type input.

glossy_transmission

Glossy transmission ray-type input.

sss

Diffuse transmission and sss ray-type input.

volume

Volume ray-type input.

Outputs

result

Returns a value of an appropriate input based on current ray-type.

raytype

Returns an integer value which means the current ray-type:

  • 0 - camera ray-type

  • 1 - shadow ray-type

  • 2 - diffuse reflection ray-type

  • 3 - diffuse transmission and sss ray-types

  • 4 - glossy reflection ray-type

  • 5 - glossy transmission ray-type

  • 6 - volume ray-type

VOP nodes