Stain

 
 
 

Category: mental ray > Materials

Shader Family: Surface Material

Output: Color

The Stain shader is useful only when used in conjunction with other shaders. Its sole purpose is to define an area of effect: any material within the staining object is considered to be "stained." Different shaders make use of staining in various ways (see the Wet and Landscape shaders.)

Staining works by looking at the path of the rays: if a ray passes through a staining object, the ray becomes stained, and then stains any object it hits. This has an unexpected consequence: if the camera enters the staining object, eye rays will no longer strike the staining object before other surfaces, and stains will become reversed. As a result, avoid moving the camera into a staining object.

Name

The name of the shader node displayed in the render tree. Enter any name you like, or leave the default.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License