<?xml version="1.0" ?>
<project name="Parallax Mapping" width="512" height="512">
	<assets>
		<attributes>
			<!-- parallax parameters -->
			<attribute type="COLOR" name="scale" data="FLOAT" value="0.042"/>
			<attribute type="COLOR" name="bias" data="FLOAT" value="-0.028"/>
			<!-- steep parallax parameters -->
			<attribute type="COLOR" name="bumpScale" data="FLOAT" value="0.05"/>
			<attribute type="COLOR" name="linSteps" data="INT" value="64"/>
			<attribute type="COLOR" name="binSteps" data="INT" value="8"/>
			<attribute type="COLOR" name="shadowLinSteps" data="INT" value="32"/>
		</attributes>
		
		<scenes>
			<scene name="Cube" param="UNITIZE">
				<TRANSLATE x="0" y="1" z= "0" />
				<file name="models/cube2.obj"/>
			</scene>
		</scenes>
		
		<viewports>
			<viewport name="MainViewport">
				<CLEAR_COLOR r="0.0" g="0.0" b="0.0" />
			</viewport>
		</viewports>
		
		<cameras>
			<camera name="MainCamera" >
				<viewport name="MainViewport" />
				<NEAR value= "0.1" />
				<FAR value="100" />
                <POSITION x="1.90969" y="2.85184" z="1.74903" w="1" />
                <VIEW x="-0.583466" y="-0.589145" z="-0.558995" w="0" />
			</camera>
		</cameras>
		
		<lights>
			<light name="Sun">
				<DIRECTION x="-2" y="-4" z="-3" />
			</light>
		</lights>
		
		<materialLibs>
			<materialLib filename="textureModel.mlib" />
		</materialLibs>
	</assets>
	
	<pipelines>
	
		<pipeline name="textured">
			<pass class="default" name="geometry" >
				<scenes>
					<scene name="Cube" />
				</scenes>
				<camera name="MainCamera" />
				<lights>
					<light name="Sun" />
				</lights>
				<materialMaps>
					<map fromMaterial="*" 
						 toMaterial="textured" toLibrary="Texture" />
				</materialMaps>
			</pass>
		</pipeline>
				
		<pipeline name="normal mapping in TS">
			<pass class="default" name="tangent space" >
				<scenes>
					<scene name="Cube" />
				</scenes>
				<camera name="MainCamera" />
				<lights>
					<light name="Sun" />
				</lights>
				<materialMaps>
					<map fromMaterial="DefaultOBJMaterial" 
						 toMaterial="texturedTS" toLibrary="Texture" />
				</materialMaps>
			</pass>
		</pipeline>
		
		<pipeline name="parallax mapping">
			<pass class="default" name="parallax" >
				<scenes>
					<scene name="Cube" />
				</scenes>
				<camera name="MainCamera" />
				<lights>
					<light name="Sun" />
				</lights>
				<materialMaps>
					<map fromMaterial="DefaultOBJMaterial" 
						 toMaterial="parallax" toLibrary="Texture" />
				</materialMaps>
			</pass>
		</pipeline>
		
		<pipeline name="steep parallax mapping">
			<pass class="default" name="steep parallax" >
				<scenes>
					<scene name="Cube" />
				</scenes>
				<camera name="MainCamera" />
				<lights>
					<light name="Sun" />
				</lights>
				<materialMaps>
					<map fromMaterial="DefaultOBJMaterial" 
						 toMaterial="steepParallax" toLibrary="Texture" />
				</materialMaps>
			</pass>
		</pipeline>

		</pipelines>
	
	<interface>
		<window label="settings" >
			<pipelineList label="effect" />
			
			<var label="scale" type="COLOR" context="Texture::parallax" 
					component="scale" def="min=0 max=1 step=0.001" />
			<var label="bias" type="COLOR" context="Texture::parallax" 
					component="bias" def="min=-1 max=1 step=0.001" />
					
			<var label="bump scale" type="COLOR" context="Texture::steepParallax" 
					component="bumpScale" def="min=0 max=1 step=0.001" />
			<var label="linear steps" type="COLOR" context="Texture::steepParallax" 
					component="linSteps" def="min=0 max=256 step=1" />
			<var label="binary steps" type="COLOR" context="Texture::steepParallax" 
					component="binSteps" def="min=0 max=8 step=1" />
			<var label="shadow steps" type="COLOR" context="Texture::steepParallax" 
					component="shadowLinSteps" def="min=0 max=256 step=1" />
			
		</window>
	</interface>
	
</project>