SHADOW4

THE BOX'S MAIN HELP:
This function returns a color.  SHD = C*Kr*shadow(MAP,P1,P2,P3,P4);
It gives the extent the area defined by P1, P2, P3 and P4 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 324 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 324 in the RenderMan Companion.

Kr (input):
This must be a float.  The default is 1.
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 324 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 324 in the RenderMan Companion.

P1 (input):
This must be a point.
This is the first point which defines 
the region over which the shadow is filtered.
refer to page 324 in the RenderMan Companion.

P2 (input):
This must be a point.
This is the second point which defines 
the region over which the shadow is filtered.
refer to page 324 in the RenderMan Companion.

P3 (input):
This must be a point.
This is the third point which defines 
the region over which the shadow is filtered.
refer to page 324 in the RenderMan Companion.

P4 (input):
This must be a point.
This is the fourth point which defines 
the region over which the shadow is filtered.
refer to page 324 in the RenderMan Companion.

SHD (output):
This function returns a color.  SHD = C*Kr*shadow(MAP,P1,P2,P3,P4);
It gives the extent the area defined by P1, P2, P3 and P4 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 324 in the RenderMan Companion.

<-- BACK TO Functions