#
# The Sky outside the window.
#
AttributeBegin
	TransformBegin
		Rotate -28.5 0 1 0 
		LightSource "distantlight" 5 "intensity" 0.985 
			"lightcolor" [.8275 .8275 .7]
	TransformEnd
	TransformBegin
		# ReverseOrientation
		# Scale 3000 3000 3000
		Declare "txtscale" "float"
		Declare "skycolor" "color"
		Declare "cloudcolor" "float"
		Declare "threshold" "float"
		Declare "octaves" "float"
		Declare "omega" "float"
		Declare "lambda" "float"
		#Surface "KMPuffyClouds"
		#	"skycolor" [.25 .25 .7]
		#	"txtscale" 3.8415
		#	"threshold" 0.0105
		#	"octaves" 8
		#	"omega" 0.875
		#	"lambda" 1.075
		#Sphere 1 -1 1 360 

		#
		# Building backdrop experiment
		#
		# Move it way back from the window
		Translate -7 0 7
		# Postition outside of window
		Translate -5.25 0 2.25
		# move right edge to YZ plane
		Translate -4 0 8
		Rotate -28.5 0 1 0 

		Declare "texturename" "string"
		Declare "Ka" "float"
		Declare "Kd" "float"
		Declare "Ks" "float"
		Surface "PXDecal" "texturename" "window-scene.tif"
			"Ka" 0.0715
			"Kd" 0.385
			"Ks" 0.0105
		TransformBegin
			Scale 20.5 12 1
			Patch "bilinear" "P" 
				[-0.5  0.5 0  
				  0.5  0.5 0
			 	 -0.5 -0.5 0  
				  0.5 -0.5 0]  
		TransformEnd
	TransformEnd
AttributeEnd
