<?xml version="1.0" encoding="utf-8"?>

<scene version="0.6.0" >
	<integrator type="bdpt" >
		<integer name="maxDepth" value="5" />
	</integrator>
	<sensor type="perspective" >
		<string name="fovAxis" value="x"/>
		<float name="fov" value="39"/>
		<transform name="toWorld">
			<rotate x="1" angle="24.3"/>
			<rotate y="1" angle="-77.3368591040312"/>
			<rotate z="1" angle="-5.9185e-06"/>
			<translate x="8.785002" y="6.751774" z="0.270870"/>
		</transform>

		<sampler type="independent" >
			<integer name="sampleCount" value="$spp" />
		</sampler>
		<film type="hdrfilm" >
			<!-- <integer name="width" value="900" /> -->
			<!-- <integer name="height" value="600" /> -->
			<integer name="width" value="1200" />
			<integer name="height" value="800" />
			<string name="pixelFormat" value="rgb"/>
			<rfilter type="tent"/>
			<boolean name="banner" value="false" />
		</film>
	</sensor>

	<bsdf type="twosided" id="Diffuse" >
		<bsdf type="diffuse" >
			<rgb name="reflectance" value="0.50, 0.65, 0.55"/>
		</bsdf>
	</bsdf>

	<bsdf type="coating" id="mat-scarab-wings-coated">
		<float name="thickness" value="$tau"/>
		<float name="sigma" value="0.35" />
		<float name="coatingIOR" value="1.4" />
		<string name="material" value="Au" />
	</bsdf>

	<shape type="cylinder" >
		<ref id="Diffuse" />
		<emitter type="area" >
			<spectrum name="radiance" value="400:0,430:0,455:0, 489:0,491:240,493:0, 548:0,568:0,570:40,572:0,598.5:0,600:55,602:0, 615:0, 635:0" />
			<float name="scale" value="$rad" />
		</emitter>

		<point name="p0" x="0" z="0" y="$l1" />
		<point name="p1" x="0" z="0" y="$l2" />
		<float name="radius" value="$r" />
		<transform name="toWorld">
			<rotate z="1" angle="90"/>
			<translate x="-2.0623" y="3.5732" z="5.1885" />
		</transform>
	</shape>

	<shape type="ply" >
		<string name="filename" value="meshes/Room.ply" />
		<boolean name="faceNormals" value="true" />
		<bsdf type="twosided" >
			<bsdf type="diffuse" >
				<texture type="checkerboard" name="reflectance">
					<float name="uvscale" value="22"/>
					<float name="uoffset" value="32"/>
					<rgb name="color0" value="0.015, 0.015, 0.019"/>
					<rgb name="color1" value="0.02, 0.02, 0.022"/>
				</texture>
			</bsdf>
		</bsdf>
	</shape>


	<shape type="ply">
		<string name="filename" value="meshes/Floor.ply"/>
		<bsdf type="twosided" >
			<bsdf type="diffuse" >
				<texture type="checkerboard" name="reflectance">
					<float name="uvscale" value="33"/>
					<float name="uoffset" value="04"/>
					<rgb name="color0" value="0.0075, 0.0075, 0.0075"/>
					<rgb name="color1" value="0.0075, 0.0075, 0.0075"/>
				</texture>
			</bsdf>
		</bsdf>
	</shape>

	<bsdf type="conductor" id="mirrorbsdf" >
		<string name="material" value="Al" />
	</bsdf>
	<bsdf type="roughplastic" id="mirrorbackbsdf" >
		<rgb value="0.0003 0.0003 0.0002" name="diffuseReflectance"/>
		<float name="intIOR" value="1.4" />
		<float name="alpha" value="0.075" />
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/Plane.ply"/>
		<ref id="mirrorbsdf" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/Plane.001.ply"/>
		<ref id="mirrorbackbsdf" name="bsdf"/>
	</shape>

	<bsdf type="twosided" id="standbsdf" >
		<bsdf type="roughconductor" >
			<float name="sigma" value="0.0005" />
			<string name="material" value="K" />
		</bsdf>
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/Cube.ply"/>
		<ref id="standbsdf" name="bsdf"/>
	</shape>


	<shape type="sphere" >
		<emitter type="area" >
			<spectrum name="radiance" value="430:10,440:18,450:48,460:30,480:21, 500:50,530:53,580:90,600:100,630:83,680:30,730:19" />
			<float name="scale" value="4" />
		</emitter>

		<float name="radius" value=".25" />
		<transform name="toWorld">
			<translate x="-3.82" y="3.7" z="-2.25" />
		</transform>
	</shape>


	<bsdf type="roughconductor" id="mat-scarab-body" >
		<float name="sigma" value="0.02" />
		<string name="material" value="Cu" />
		<rgb name="specularReflectance" value=".9, .85, .85"/>
	</bsdf>
	<bsdf type="roughconductor" id="mat-scarab-wings" >
		<float name="sigma" value="0.00001" />
		<string name="material" value="Cr" />
		<rgb name="specularReflectance" value=".9, .95, 1"/>
	</bsdf>
	<bsdf type="roughconductor" id="mat-scarab-body2" >
		<float name="sigma" value="0.0025" />
		<string name="material" value="Au" />
		<rgb name="specularReflectance" value=".9, .9, .9"/>
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/15916_Scarab_Beetle_v1.ply"/>
		<ref id="mat-scarab-body" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/15916_Scarab_Beetle_v1.001.ply"/>
		<ref id="mat-scarab-wings" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/15916_Scarab_Beetle_v1.003.ply"/>
		<ref id="mat-scarab-body2" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/15916_Scarab_Beetle_v1.002.ply"/>
		<ref id="mat-scarab-wings-coated" name="bsdf"/>
	</shape>


	<bsdf type="roughplastic" id="mat-pluma-cover">
		<rgb value="0.001 0.005 0.005" name="diffuseReflectance"/>
		<float name="intIOR" value="1.6" />
		<float name="alpha" value="0.015" />
	</bsdf>
	<bsdf type="diffuse" id="mat-pluma-nibplastic">
		<rgb value="0.05000 0.05000 0.05000" name="reflectance"/>
	</bsdf>
	<bsdf type="roughplastic" id="mat-pluma-inner-body">
		<rgb value="0.00001 0.00001 0.00001" name="diffuseReflectance"/>
		<float name="intIOR" value="1.4" />
		<float name="alpha" value="0.0002" />
	</bsdf>
	<bsdf type="twosided" id="mat-nib">
		<bsdf type="roughconductor">
			<float name="sigma" value="0.00001" />
			<string name="material" value="Ir" />
		</bsdf>
	</bsdf>
	<bsdf type="roughconductor" id="mat-pluma-clip">
		<float name="sigma" value="0.001" />
		<string name="material" value="Al" />
	</bsdf>
	<bsdf type="roughconductor" id="mat-pluma-body">
		<float name="sigma" value="0.1" />
		<string name="material" value="Cr" />
		<rgb value=".95 0.9 1." name="specularReflectance"/>
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA-Material #31.ply"/>
		<ref id="mat-pluma-nibplastic" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA-Material #35.ply"/>
		<ref id="mat-nib" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA-Material #32.ply"/>
		<ref id="mat-pluma-body" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA-Material #33.ply"/>
		<ref id="mat-pluma-inner-body" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA.001-Material #31.ply"/>
		<ref id="mat-pluma-cover" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/PLUMA.001-Material #33.ply"/>
		<ref id="mat-pluma-clip" name="bsdf"/>
	</shape>


	<bsdf type="roughconductor" id="mat-LampBody">
		<float name="sigma" value="0.02" />
		<string name="material" value="AlSb" />
	</bsdf>
	<bsdf type="roughconductor" id="mat-LampBodyEnds">
		<float name="sigma" value="0.02" />
		<string name="material" value="Al" />
	</bsdf>
	<shape type="ply">
		<string name="filename" value="meshes/LampBody1.ply"/>
		<ref id="mat-LampBodyEnds" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/LampBody2.ply"/>
		<ref id="mat-LampBody" name="bsdf"/>
	</shape>
	<shape type="ply">
		<string name="filename" value="meshes/LampBody3.ply"/>
		<ref id="mat-LampBodyEnds" name="bsdf"/>
	</shape>
</scene>

