DAZ Script "Surface Shader" [RiSpec Constant] Sample

Todo:
Concepts Covered
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 :
  • DESCRIPTION NEEDED
 
Source : ./samples/shader swapping/shaders/RiSpec/
surface
constant()
{
	Oi = Os;
	Ci = Cs;

	Ci *= Oi;
}

Generated on Thu Sep 24 12:21:07 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.