##RenderMan RIB-Structure 1.0
# Rimas Avizienis cs184-bs LAB #7 SID#12495774
# a couple of walls, a floor and a sphere to demonstrate my polkadot shader
# it looks kind of funky on the sphere due to the way s&t are getting mapped
# but the floor and walls look good.  A few different colors, dot quantities
# and dot sizes are displayed

version 3.03
Display "lab7.tif" "file" "rgba"
Format 640 480 1
Projection "perspective" "fov" [55 ]
Translate 0.3 0.6 2.6 
Rotate 0.0 1 0 0
Rotate 15.0 0 1 0


FrameBegin 1
WorldBegin

Attribute "light" "shadows" ["on"]

LightSource "distantlight" 2 "intensity" [1 ] "lightcolor" [1 1 1] "from" [0 100 -20] "to" [0 0 0]
LightSource "distantlight" 3 "intensity" [2 ] "lightcolor" [1 1 1] "from" [30 30 30] "to" [0 0 0]
LightSource "distantlight" 4 "intensity" [2 ] "lightcolor" [1 1 1] "from" [50 30 -20] "to" [0 0 0]

AttributeBegin
Attribute "identifier" "name" "wall1"
Color [0.7 0.7 0.7]
Translate -1.0 0.5 1.0
TransformBegin
Scale 2 -2 2
Declare "numdots" "float"
Declare "dotsize" "float"
Declare "dotcolor" "color"
Color [0.1 0.2 0.8]
Surface "lab7" "numdots" 8 "dotsize" .9 "dotcolor" [0.1 0.8 0.3]
Polygon "P" [0 1 0  1 1 0  1 0 0  0 0 0]
TransformEnd
AttributeEnd

AttributeBegin
Attribute "identifier" "name" "asphere"
Declare "numdots" "float"
Declare "dotsize" "float"
Color [0.8 0.2 0.4]
Translate 0 -0.3 0
Surface "lab7" "numdots" 5 "dotsize" .8
Sphere 0.3 -0.3 0.3 360
AttributeEnd


AttributeBegin

Attribute "identifier" "name" "wall2"

Declare "numdots" "float"
Declare "dotsize" "float"
Declare "dotcolor" "color"
Color [0.7 0.2 0.3]
Surface "lab7" "numdots" 8 "dotsize" .4 "dotcolor" [0.2 0.9 0.2]
Translate -1.0 -0.5 0.0
TransformBegin
Rotate 90 0 1 0 
Polygon "P" [1 1 0  -1 1 0  -1 -1 0  1 -1 0]
TransformEnd
AttributeEnd

AttributeBegin
Attribute "identifier" "name" "floor"
Declare "numdots" "float"
Declare "dotsize" "float"
Declare "dotcolor" "color"
Color [0.4 0.4 0.2]
Surface "lab7" "numdots" 4 "dotsize" .7 "dotcolor" [0.8 0.3 0.4]
Translate 0.0 -1.5 0.0
TransformBegin
Rotate 90 1 0 0
Polygon "P" [1 1 0  -1 1 0  -1 -1 0  1 -1 0]
TransformEnd
AttributeEnd

WorldEnd
FrameEnd