Declare "minmax" "integer" Declare "Pl1" "uniform point" Declare "Pl2" "uniform point" Declare "Pl3" "uniform point" Declare "Pl4" "uniform point" Declare "maplist" "uniform string" Declare "shadowbias" "uniform float" Declare "gapbias" "uniform float" Declare "numsamples" "uniform float" Option "shadow" "bias" [0.6] FrameBegin 1 # First Soft Shadow Map image (upper left) Display "sphere1.z" "zfile" "z" Format 256 256 1.0 PixelSamples 1 1 Hider "hidden" "jitter" [0] Projection "perspective" "fov" 20 Rotate -37.74 1 0 0 Rotate 39.29 0 1 0 Translate -9 -11 11 WorldBegin TransformBegin Rotate -90 1 0 0 Cylinder 2 -2 2 360 Disk 2 2 360 TransformEnd WorldEnd Identity # Second Soft Shadow Map image (upper right) Display "sphere2.z" "zfile" "z" Format 256 256 1.0 PixelSamples 1 1 Hider "hidden" "jitter" [0] Projection "perspective" "fov" 20 Rotate -37.74 1 0 0 Rotate 50.71 0 1 0 Translate -11 -11 9 WorldBegin TransformBegin Rotate -90 1 0 0 Cylinder 2 -2 2 360 Disk 2 2 360 TransformEnd WorldEnd Identity # Third Soft Shadow Map image (lower left) Display "sphere3.z" "zfile" "z" Format 256 256 1.0 PixelSamples 1 1 Hider "hidden" "jitter" [0] Projection "perspective" "fov" 20 Rotate -32.34 1 0 0 Rotate 39.29 0 1 0 Translate -9 -9 11 WorldBegin TransformBegin Rotate -90 1 0 0 Cylinder 2 -2 2 360 Disk 2 2 360 TransformEnd WorldEnd Identity # Fourth Soft Shadow Map image (lower right) Display "sphere4.z" "zfile" "z" Format 256 256 1.0 PixelSamples 1 1 Hider "hidden" "jitter" [0] Projection "perspective" "fov" 20 Rotate -32.34 1 0 0 Rotate 50.71 0 1 0 Translate -11 -9 9 WorldBegin TransformBegin Rotate -90 1 0 0 Cylinder 2 -2 2 360 Disk 2 2 360 TransformEnd WorldEnd Identity MakeShadow "sphere1.z" "sphere1.shd" "minmax" [1] MakeShadow "sphere2.z" "sphere2.shd" "minmax" [1] MakeShadow "sphere3.z" "sphere3.shd" "minmax" [1] MakeShadow "sphere4.z" "sphere4.shd" "minmax" [1] Display "softshadows.tif" "file" "rgb" Format 640 480 1.0 PixelSamples 2 2 Hider "hidden" "jitter" [1] Projection "perspective" "fov" 16 Translate 2 0 40 Rotate -30 1 0 0 WorldBegin LightSource "ambientlight" 1 "intensity" 0.02 "lightcolor" [1 1 1] LightSource "arealight" 2 "lightcolor" [1 1 1] "intensity" 1.6 "Pl1" [8 12 -12] "Pl2" [12 12 -8] "Pl3" [8 8 -12] "Pl4" [12 8 -8] "maplist" ["sphere1.shd,sphere2.shd,sphere3.shd,sphere4.shd"] "shadowbias" [0.6] "gapbias" [0.1] "numsamples" [32] Color [0.9 0.7 0.1] Surface "plastic" TransformBegin Rotate -90 1 0 0 Cylinder 2 -2 2 360 Disk 2 2 360 TransformEnd Color [0.7 0.6 0.4] Patch "bilinear" "P" [-20 -2 20 20 -2 20 -20 -2 -20 20 -2 -20] WorldEnd FrameEnd