SHADOW

THE BOX'S MAIN HELP:
This function returns a color.  SHD = C*Kr*shadow(MAP,PP);
It gives the extent the point PP is in shadow;
where 1 is completely shadowed and 0 is completely exposed.
This value multiplied by the co-efficient and the shadow color.
refer to page 322 in the RenderMan Companion.

C (input):
Must be a color.  This is the shadow color.
It colors the value returned from the shadow function.
refer to page 322 in the RenderMan Companion.

Kr (input):
Must be a float.  Defaults to 1.0.
This is the co-efficient for the shadow function.
It controls the intensity of the returned value.
For best results Kr should range from [0,1].
refer to page 322 in the RenderMan Companion.

MAP (input):
This must be a string. The default is empty.
The name of the shadow map file to be used.
refer to page 322 in the RenderMan Companion.

PP (input):
Must be a  point. The default is the surface point, P.
The surface point to be tested for shadowing.
refer to page 322 in the RenderMan Companion.

SHD (output):
This function returns a color.  SHD = C*Kr*shadow(MAP,PP);
It gives the extent the point PP is in shadow;
where 1 is completely shadowed and 0 is completely exposed.
This value multiplied by the co-efficient and the shadow color.
refer to page 322 in the RenderMan Companion.

<-- BACK TO Functions