Defining shader attributes for a fluid

The fluidShape has a built-in shader that you can use to modify color, texture, and other attributes to give the fluid a particular look. In the next steps, you’ll make the shader apply specifically to the Density values inside the container.

To define shader attributes for the fluid

  1. Open the Shading section in the Attribute Editor.
  2. In the Color subsection, change Color Input to Density.

    The Density values in the container will now take on the colors defined on the color bar. Leave the color white to make the clouds appear white.

  3. In the Opacity subsection, check that the Opacity Input is set to Density.

    The opacity represents how much the Density will block light. You’ll look more at Opacity later in this lesson.