<?xml version="1.0" encoding="iso-8859-1" ?>
<sys:Export xmlns:sys="vrg/sys">	
	<Ref name="res">		
		<PBuffer name="pbo.primary">
			<StringParam name="mode">rgba tex2D depth</StringParam>
			<IntParam name="width">1024</IntParam>
			<IntParam name="height">1024</IntParam>			
		</PBuffer>
		<PBuffer name="pbo.blurred">
			<StringParam name="mode">rgba tex2D</StringParam>
			<IntParam name="width">512</IntParam>
			<IntParam name="height">512</IntParam>			
		</PBuffer>	
		<Transform name="rura">
			<Vec3Param name="s">0.7 0.7 0.7</Vec3Param>
			<Ref name="in">
				<GeoLoader name="rura">
					<FileNameParam name="fileName">../res/models/rury_spetane.geo</FileNameParam>
				</GeoLoader>
			</Ref>
		</Transform>	
		<Group name="scene.rury">
			<Ref name="in">				
				<Material>		
					<Ref name="assets">		
						<FloatParam name="far">20</FloatParam>		
						<FloatParam name="near">0.5</FloatParam>		
					</Ref>
					<sys:Import file="../res/xml/16s_materials.xml" src="tech.rury depth" />
					<Ref name="in">						
						<Transform>		
							<QuatParam name="r">0 0 0</QuatParam>
							<Ref name="in">
								<Transform>
									<Vec3Param name="t">0 2 -6</Vec3Param>
									<Vec3Param name="s">0.5 0.5 0.5</Vec3Param>
									<Ref name="in">
										<sys:Link src="/res/rura" />
									</Ref>
								</Transform>
								<Transform>
									<Vec3Param name="t">0 0 -16</Vec3Param>
									<Vec3Param name="s">0.75 0.75 0.75</Vec3Param>
									<Ref name="in">
										<sys:Link src="/res/rura" />
									</Ref>
								</Transform>
								<Transform>
									<Vec3Param name="t">0 0 -32</Vec3Param>
									<Vec3Param name="s">0.75 0.75 0.75</Vec3Param>
									<Ref name="in">
										<sys:Link src="/res/rura" />
									</Ref>
								</Transform>
								<Transform>
									<Vec3Param name="t">-26 -5 -20</Vec3Param>
									<Vec3Param name="s">2.25 2.25 2.25</Vec3Param>
									<Ref name="in">
										<sys:Link src="/res/rura" />
									</Ref>
								</Transform>
							</Ref>				
						</Transform>
					</Ref>					
				</Material>						
			</Ref>
		</Group>
	</Ref>
	<Ref name="in">		
		<Group>
			<BoolParam name="visible">
				<BoolController>
					<FloatParam name="t">
						<sys:Link src="/sys/timer/t" />
					</FloatParam>
					<StringParam name="keys">
						0	false
						4.1	true
						13	false
					</StringParam>	
				</BoolController>	
			</BoolParam>
			<Ref name="in">
				<Material name="renderToTexture">
					<Technique>
						<Pass>
							<RenderTarget>
								<Ref name="color">
									<sys:Link src="/res/pbo.primary" />
								</Ref>
							</RenderTarget>
						</Pass>
						<Pass>
							<EnumMode name="draw">screen</EnumMode>
							<RenderTarget>
								<Ref name="color">
									<sys:Link src="/res/pbo.blurred" />
								</Ref>
							</RenderTarget>
							<TextureUnit>
								<Ref name="t0">
									<sys:Link src="/res/pbo.primary" />
								</Ref>
							</TextureUnit>
							<sys:Import file="../res/xml/16s_materials.xml" src="shader.texturedScreenQuad" />
						</Pass>				
					</Technique>
					<Ref name="in">
						<Camera>
							<Vec3Param name="target">0 0 -3</Vec3Param>
							<Vec3Param name="pos">
								<Vec3Controller>
									<FloatParam name="t">
										<sys:Link src="/sys/timer/t" />
									</FloatParam>
									<StringParam name="keys">
										4		0	4	3
										7.9		6	4	1
										7.91	16	14	1
										13		0	4	3
									</StringParam>
								</Vec3Controller>
							</Vec3Param>
							<Ref name="in">
								<sys:Link src="/res/scene.rury" />			
							</Ref>
						</Camera>			
					</Ref>
				</Material>	
				<Material>
					<Ref name="assets">
						<sys:Link src="/res/pbo.blurred" />
					</Ref>
					<sys:Import file="../res/xml/16s_materials.xml" src="tech.rury" />
				</Material>
				<Material>
					<Ref name="assets">
						<FloatParam name="alpha">
							<FloatController>
								<EnumParam name="mode">hold</EnumParam>
								<FloatParam name="t">
									<sys:Link src="/sys/timer/t"/>
								</FloatParam>
								<StringParam name="keys">
									4.1		1.0
									5.1		0.0
									7.3		0.0
									7.9		1.0
									8.5		0.0
								</StringParam>
							</FloatController>
						</FloatParam>			
					</Ref>
					<sys:Import file="../res/xml/16s_materials.xml" src="tech.fade" />			
				</Material>
				<Material>		
					<Ref name="assets">
						<Texture2D name="diffuseMap">
							<FileNameParam name="fileName">../res/textures/dof_ramka.tga</FileNameParam>
						</Texture2D>	
						<FloatParam name="repeat">1</FloatParam>			
					</Ref>
					<sys:Import file="../res/xml/16s_materials.xml" src="tech.overlay" />
				</Material>
			</Ref>
		</Group>
	</Ref>
</sys:Export>