#
# The Chair in the back row on the left.
#
AttributeBegin

	TransformBegin
		# Move the Chair onto the floor
		Translate 0 -3 0
		# Move the chair to its relative position in the row
		Translate 0.5 0 0
		# Rotate towards the front of the class (to the right)
		Rotate 93.75 0 1 0
		# Move the chairs legs onto the XZ plane
		Translate 0 1.658125 0
		Scale 2 1.895 2

		# 
		# The metallic frame
		#
		AttributeBegin
			Color [ .5 .5 .5 ]
			Declare "metalKa" "float"
			Declare "metalKs" "float"
			Declare "metalroughness" "float"
			Declare "rustKa" "float"
			Declare "rustKd" "float"
			Declare "rustcolor" "color"
			Declare "txtscale" "float"
			Declare "rusty" "float"
			Declare "rustbump" "float"
			Declare "offset" "float"
			Surface "WWRustyShinyMetal" 
				"metalKa" .2315 "metalKs" 3.125 
				"metalroughness" 0.475
				"rustcolor" [.915 .53995 .5015]
				"rustKa" .2315 "rustKd" 0.485 
				"rusty" .2915 "rustbump" 0.4125 
				"txtscale" 5.2895
				"offset" 0.342
			Declare "Km" "float"
			Declare "frequency" "float"
			Declare "power" "float"
			Displacement "LGDented" "power" 3.125 "Km" 1.8215 "frequency" 3.105
			ReadArchive "chair03-seat.rib"
		AttributeEnd

		# 
		# The wooden writing area
		#
		AttributeBegin
			Declare "txtscale" "float"
			Declare "ringscale" "float"
			Declare "lightwood" "color"
			Declare "darkwood" "color"
			Declare "grainy" "float"
			Declare "usez" "float"
			Declare "orientation" "float"
			Surface "LGWood" 
				"orientation" 1
				"lightwood" [0.34 0.24 0.15] 
				"darkwood" [0.30 0.20 0.0852] 
				"grainy" .95
				"usez" 1
				"ringscale" 122
				"txtscale" 1.135
			ReadArchive "chair03-arm.rib"
			Declare "txtscale" "float"
			Declare "magnitude" "float"
			Declare "offset" "float"
			Displacement "PXDWood" 
		AttributeEnd

		#
		# Books on the desk
		#
		AttributeBegin
			Color [0.647059 0.164706 0.164706]
			Surface "plastic" 
			ReadArchive "chair-armbooks-cover.rib"
		AttributeEnd
		AttributeBegin
			Color [0.6 0.6 0.6]
			ReadArchive "chair-armbooks-text.rib"
		AttributeEnd

	TransformEnd
AttributeEnd
