From the course: Learning Houdini

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Shading attributes

Shading attributes - Houdini Tutorial

From the course: Learning Houdini

Start my 1-month free trial

Shading attributes

- Earlier in the geometry lesson we took a look at how to add attributes to geometry. And one of the places where that becomes really powerful is in the world of shading. What we're gonna take a look at in this is how to assign a random color to each of the points on the grid that we're instancing the spheres to. Then we're gonna have that color transfer over to the spheres and we're gonna pass that information along to the shader. The cool thing is we can have one shader apply it to all of these things, but then we can have different specific variables and parameters of that change per object, or actually per primitive. It could even be per polygon face. In this it's gonna be a really simple example. We're just gonna change the colors. But one of the good, larger production examples of this would be, let's say you were doing a stadium and you were doing the crowd simulation and you needed to randomize textures on characters or any other attribute related to shading, this is the exact…

Contents