On this page |
Reading geometry attributes in a shader
You can use the Bind VOP to get the value of a geometry attribute at the current point, or to set an attribute. The
Parameter VOP will also pick up the value of attributes with the same name as the parameter. This lets you create parameters such as "Color" (
Cd
) that can be specified using an overall parameter or overridden using an attribute.
Shader effects
Shader effects are like presets you can apply to VOP node inputs. They add useful nodes to the input, for example "promote" the input to be a parameter on the parent node, or making the input gets its value from a texture, or add noise to current input.
You can choose effects in either the parameter editor or the network editor. The result is the same.
To... | Do this |
---|---|
Apply an effect in the network |
|
Apply an effect in the parameter editor |
Click the |
Example
-
In a Material Shader Builder network, create a
Principled Shader node.
-
In the parameter editor, click the
menu to the right of the Reflection intensity parameter, then choose Noise ▸ Cellular noise.
Houdini automatically:
-
Creates a UV Coordinates node and a
Cellular Noise node and wires them into the
reflect
input. -
Promotes useful inputs from the noise node up to the parent material.
The menu icon next to VOP parameters in the parameter editor changes depending on the corresponding input:
|
Not connected |
|
Connected to a parameter (promoted) |
|
Connected |
|
Hidden |
Hiding and showing inputs
Collapsing branches of the network can help keep the network tidy.
To... | Do this |
---|---|
Collapse down all the nodes going into an input |
To show the nodes again, Inputs that are hidden appear as lines fading out. Hidden inputs that are |
Hide the actual input rows on the node |
Nodes sometimes have a large number of inputs (for example the Surface model VOP has an input for almost every parameter). There are several techniques for hiding unused inputs. The node state button in the top-right corner of each VOP node lets you switch the node between three display modes: Independent of the node state button, you can mark certain inputs as always hidden. The Surface model VOP uses this to show only the most commonly used. To show or hide an input, The menu button for the parameter corresponding to a hidden input displays a |