Description : |
Below is the source for a standard surface shader, written in RSL (RenderMan Shading Language), that serves the purpose of providing constant color across the surface. As you can see, the main function takes no arguments. Instead, this shader uses the standard Color (Cs) and Opacity (Os) attributes. |
Concepts Covered : |
|
Source : ./samples/shader swapping/shaders/RiSpec/ |
surface constant() { Oi = Os; Ci = Cs; Ci *= Oi; } |