Help Contents / Graphics / Shadows / castShadows

castShadows

command to draw the shadows which have been constructed by SurfaceStart..SurfaceColumn..SurfaceEnd, PolyStart..PolyEnd, TessStart..TessContour..TessEnd, Sphere and partialEllipsoid,  after a call to enableShadows. 

If you can't see the shadow of a specific surface, it is likely that you must draw it with the opposite normal. This is easy to accomplish by drawing reversly, so if you had used rt, use lt instead, then it should work. 

Example: 

	perspective cs clearshadows 
	enableShadows 
	setpc "blue  
	pcube 
	back 1000 
	setpc "green 
	sphere 900 
	castshadows 
	rotatescene 


previous: disableShadows	next: clearShadows
