<?xml version="1.0" encoding="UTF-8"?>
<!--
	toxic - A Global Illumination Renderer
	Copyright (C) 2003-2004 Francois Beaune
	Contact: http://toxicengine.sourceforge.net/

	This file is part of toxic.

	toxic is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	toxic is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with toxic; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-->
<ToxicScene xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../schemas/toxicscene.xsd">
	<Frame>
		<SurfaceShader name="gray_mat">
			<Reflectance>
				<ConstantTexture value="0.5"/>
			</Reflectance>
		</SurfaceShader>

		<SurfaceShader name="white_mat">
			<Reflectance>
				<ConstantTexture value="1.0"/>
			</Reflectance>
		</SurfaceShader>

		<SurfaceShader name="light_mat">
			<EDF type="lambertian"/>
			<RadiantExitance value="8.0"/>
			<Reflectance>
				<ConstantTexture value="0.0"/>
			</Reflectance>
		</SurfaceShader>

		<Object type="mesh">
			<Parameter name="href" value="gally.ase"/>
			<Parameter name="surfaceshader" value="gray_mat"/>

			<!-- Normal Reconstruction Settings -->
			<Parameter name="rebuildnormals" value="true" />
			<Parameter name="smoothingthresholdangle" value="70.0" />

			<!-- Mesh Optimization Settings -->
			<Parameter name="optimizemesh" value="true" />
			<Parameter name="vertexweldingthreshold" value="1.0e-3" />
			<Parameter name="normalweldingthreshold" value="0.1" />

			<Transform>
				<Scale value="0.01"/>
				<Rotation angle="-90.0" axis="0.0 1.0 0.0"/>
				<Translation value="0.0 1.5 0.0"/>
			</Transform>
		</Object>

		<Object type="sphere">
			<Parameter name="surfaceshader" value="white_mat"/>
			<Transform>
				<Scale value="5.4"/>
			</Transform>
		</Object>

		<Object type="square">
			<Parameter name="surfaceshader" value="light_mat"/>
			<Transform>
				<Scale value="3.0"/>
				<Rotation angle="180.0" axis="1.0 0.0 0.0"/>
				<Translation value="0.0 3.0 0.0"/>
			</Transform>
		</Object>

		<Object type="thinlenscamera">
			<Parameter name="fstop" value="1.4"/>
			<Parameter name="focallength" value="120.0e-3"/>
			<Parameter name="autofocus" value="0.027 0.207"/>
			<Transform>
				<Translation value="0.0 0.9 5.1"/>
			</Transform>
		</Object>
	</Frame>
</ToxicScene>
