<?xml version="1.0" encoding="iso-8859-1" ?>
<sys:Export xmlns:sys="vrg/sys">	
	<Ref name="res">		
		<PBuffer name="pbo.tunel.primary">
			<StringParam name="mode">rgba tex2D depth</StringParam>
			<IntParam name="width">1024</IntParam>
			<IntParam name="height">1024</IntParam>			
		</PBuffer>	
		<Group name="scene.tunel">
			<Ref name="in">								
				<Transform>		
					<QuatParam name="t">10 2 -12</QuatParam>
					<QuatParam name="r">0 0 0</QuatParam>
					<Ref name="in">
						<Material>
							<Technique>
								<Pass>
									<Light>
										<IntParam name="lightId">0</IntParam>
										<Vec3Param name="pos">-15 5 15</Vec3Param>
									</Light>
								</Pass>
							</Technique>
							<Ref name="in">
								<Material>
									<Ref name="assets">
										<Texture2D name="diffuseMap">
											<FileNameParam name="fileName">../res/textures/noise_diffuse.tga</FileNameParam>
										</Texture2D>
										<Texture2D name="normalMap">
											<FileNameParam name="fileName">../res/textures/noise_normal.tga</FileNameParam>
										</Texture2D>
									</Ref>
									<sys:Import file="../res/xml/16s_materials.xml" src="tech.tunelSurface" />
									<Ref name="in">
										<Transform>
											<QuatParam name="r">
												<QuatController>
													<FloatParam name="t">
														<sys:Link src="/sys/timer/t" />
													</FloatParam>
													<EnumParam name="mode">loop</EnumParam>
													<StringParam name="keys">
														0	0	0	0
														4	0	90	0
														8	0	180	0
														12	0	270	0	
														16	0	360	0														
													</StringParam>
												</QuatController>
											</QuatParam>										
											<Ref name="in">
												<MeshUtils>
													<BoolParam name="genTangents">true</BoolParam>
													<TorusGen>
														<FloatParam name="innerR">4</FloatParam>
														<FloatParam name="outerR">13</FloatParam>
													</TorusGen>
												</MeshUtils>
											</Ref>
										</Transform>
									</Ref>								
								</Material>
							</Ref>
						</Material>
					</Ref>				
				</Transform>				
			</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
						11	true
					</StringParam>	
				</BoolController>	
			</BoolParam>
			<Ref name="in">
				<Material name="renderToTexture">
					<BoolParam name="visible">
						<BoolController>
							<FloatParam name="t">
								<sys:Link src="/sys/timer/t" />
							</FloatParam>
							<StringParam name="keys">
								0	true
								16	false
							</StringParam>	
						</BoolController>	
					</BoolParam>
					<Technique>
						<Pass>
							<RenderTarget>
								<Ref name="color">
									<sys:Link src="/res/pbo.tunel.primary" />
								</Ref>
							</RenderTarget>
						</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">
										0		0	0	0
									</StringParam>
								</Vec3Controller>
							</Vec3Param>
							<Ref name="in">
								<sys:Link src="/res/scene.tunel" />			
							</Ref>
						</Camera>	
						<Material>
							<BoolParam name="visible">
								<BoolController>
									<FloatParam name="t">
										<sys:Link src="/sys/timer/tt" />
									</FloatParam>
									<EnumParam name="mode">loop</EnumParam>
									<StringParam name="keys">
										0.00	true
										0.1	false
										0.2	true
										0.3	false
										0.4	true
										0.5	false
										0.6	true
										0.7	false
									</StringParam>	
								</BoolController>	
							</BoolParam>
							<Ref name="assets">
								<FloatParam name="x_repeat">6</FloatParam>
								<FloatParam name="y_repeat">3</FloatParam>		
								<Texture2D name="diffuseMap">
									<FileNameParam name="fileName">../res/textures/cross.jpg</FileNameParam>
								</Texture2D>	
							</Ref>
							<sys:Import file="../res/xml/16s_materials.xml" src="tech.cross" />		
							<Ref name="in">
								<QuadGen>
									<FloatParam name="left">-1</FloatParam>
									<FloatParam name="right">1</FloatParam>
									<FloatParam name="top">-0.5</FloatParam>
									<FloatParam name="bottom">0.85</FloatParam>
								</QuadGen>
							</Ref>	
						</Material>
					</Ref>
				</Material>	
				<Material>
					<Ref name="assets">
						<sys:Link src="/res/pbo.tunel.primary" />
						<FloatParam name="alpha">
							<FloatController>
								<FloatParam name="t">
									<sys:Link src="/sys/timer/t" />
								</FloatParam>
								<StringParam name="keys">
									0	0
									11	0
									13	1
									16	1
								</StringParam>
							</FloatController>
						</FloatParam>
					</Ref>
					<sys:Import file="../res/xml/16s_materials.xml" src="tech.tunelScreen" />
				</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>	
				<Material name="fadeOut">					
					<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">
									15		0.0
									16		1.0
								</StringParam>
							</FloatController>
						</FloatParam>			
					</Ref>
					<sys:Import file="../res/xml/16s_materials.xml" src="tech.fadeWhite" />			
				</Material>	
				<Material name="credits">					
					<Ref name="assets">
						<Texture2D name="diffuseMap">
							<FileNameParam name="fileName">../res/textures/credits.jpg</FileNameParam>
						</Texture2D>	
						<FloatParam name="alpha">
							<FloatController>
								<EnumParam name="mode">hold</EnumParam>
								<FloatParam name="t">
									<sys:Link src="/sys/timer/t"/>
								</FloatParam>
								<StringParam name="keys">
									0		0.0
									16		0.0
									18		1.0
								</StringParam>
							</FloatController>
						</FloatParam>			
					</Ref>
					<sys:Import file="../res/xml/16s_materials.xml" src="tech.credits" />			
				</Material>	
			</Ref>
		</Group>
	</Ref>
</sys:Export>