Public feed
#724206
FrameBegin 1
Display "shadow.z" "zfile" "z"
#Display "+shadow.z" "zframebuffer" "z"
Format 320 240 1
Projection "perspective" "fov" [90]
PixelFilter "box" 1 1
ShadingRate 10
Hider "hidden" "depthfilter" "midpoint"
Translate 0 0 2
Translate -1 -0.5 -1 #Relivant to "shadowspot" transformation, note inverse X and Y positions
WorldBegin
AttributeBegin
Scale 0.4 0.4 0.4
Color [0 0.8 0]
Torus 0.7 0.3 0 360 360
AttributeEnd
WorldEnd
FrameEnd
MakeShadow "shadow.z" "shadow.map"
FrameBegin 2
Display "beauty.tif" "file" "rgba"
Display "+beauty.tif" "framebuffer" "rgb"
Format 320 240 1
Projection "perspective" "fov" [90]
Translate 0 0 2
#Rotate 40 0 1 0 #Controls the orientation of the scene (shadow inspection)
WorldBegin
LightSource "ambientlight" 1 "intensity" [0.5]
LightSource "shadowspot" 2 "intensity" [2] "from" [1 0.5 -1] "coneangle" [0.75] "string shadowname" ["shadow.map"] "float blur" [0.01]
Surface "matte"
AttributeBegin
Scale 0.4 0.4 0.4
Color [0 0.8 0]
Torus 0.7 0.3 0 360 360
AttributeEnd
AttributeBegin
Rotate 60 1 0 0
Color [0.8 0 0]
Polygon "P" [-1 -1 0 1 -1 0 1 1 0 -1 1 0]
AttributeEnd
WorldEnd
FrameEnd