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

	<viewports>
	 	<viewport name="background" world="background">
	      <projection-transform>
	        <pixel-perspective/>
	      </projection-transform>
	    </viewport>    
	 </viewports>
	 
	<render-targets>
	  <render-target texture="direct-image-0" />
	  <render-target texture="direct-image-1" />
	</render-targets> 
	 
	<worlds>
  		<world name="background">
			<array count="25" randomNumberCount="10">
				<!-- front -->
				<container>
					<variables>
						<float name="side" value="0.0"/>
					</variables>
					<trianglestrip>
						<texture render-target="direct-image-0"/>
						<texture render-target="direct-image-1"/>
						<texture static-src="move.png" width="8" height="8"/>
						<xyz>
							-0.5 -0.5  0.5
							 0.5 -0.5  0.5
							-0.5  0.5  0.5
							 0.5  0.5  0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							-0.5 -0.5  0.5
							 0.5 -0.5  0.5
							-0.5  0.5  0.5
							 0.5  0.5  0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							0.0	1.0	0.0
							1.0	1.0	0.0
							0.0	0.0	0.0
							1.0	0.0	0.0
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<shader vertexshader="first" pixelshader="first">
							<float name="ArrayFactor" value="0.8"/>
						</shader>
					</trianglestrip>
			</container>
			<!-- right -->
				<container>
					<variables>
						<float name="side" value="1.0"/>
					</variables>
					<trianglestrip>
						<texture render-target="direct-image-0"/>
						<texture render-target="direct-image-1"/>
						<texture static-src="move.png" width="8" height="8"/>
						<xyz>
							 0.5 -0.5  0.5
							 0.5 -0.5 -0.5
							 0.5  0.5  0.5
							 0.5  0.5 -0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							 0.5 -0.5  0.5
							 0.5 -0.5 -0.5
							 0.5  0.5  0.5
							 0.5  0.5 -0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							0.0	1.0	0.0
							1.0	1.0	0.0
							0.0	0.0	0.0
							1.0	0.0	0.0
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<shader vertexshader="first" pixelshader="first">
							<float name="ArrayFactor" value="0.8"/>
						</shader>
					</trianglestrip>
				</container>
				<!-- back -->
				<container>
					<variables>
						<float name="side" value="1.0"/>
					</variables>
					<trianglestrip>
						<texture render-target="direct-image-0"/>
						<texture render-target="direct-image-1"/>
						<texture static-src="move.png" width="8" height="8"/>
						<xyz>
							 0.5  0.5  -0.5
							-0.5  0.5  -0.5
							 0.5 -0.5  -0.5
							-0.5 -0.5  -0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							 0.5  0.5  -0.5
							-0.5  0.5  -0.5
							 0.5 -0.5  -0.5
							-0.5 -0.5  -0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							0.0	1.0	0.0
							1.0	1.0	0.0
							0.0	0.0	0.0
							1.0	0.0	0.0
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<shader vertexshader="first" pixelshader="first">
							<float name="ArrayFactor" value="0.8"/>
						</shader>
					</trianglestrip>
				</container>

				<!-- left -->
				<container>
					<variables>
						<float name="side" value="0.0"/>
					</variables>
					<trianglestrip>
						<texture render-target="direct-image-0"/>
						<texture render-target="direct-image-1"/>
						<texture static-src="move.png" width="8" height="8"/>
						<xyz>
							-0.5 -0.5 -0.5
							-0.5 -0.5  0.5
							-0.5  0.5 -0.5
							-0.5  0.5  0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							-0.5 -0.5 -0.5
							-0.5 -0.5  0.5
							-0.5  0.5 -0.5
							-0.5  0.5  0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							0.0	1.0	0.0
							1.0	1.0	0.0
							0.0	0.0	0.0
							1.0	0.0	0.0
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<shader vertexshader="first" pixelshader="first">
							<float name="ArrayFactor" value="0.8"/>
						</shader>
					</trianglestrip>
				</container>
				<!-- top -->
				<container>
					<variables>
						<float name="side" value="0.0"/>
					</variables>
					<trianglestrip>
						<texture render-target="direct-image-0"/>
						<texture render-target="direct-image-1"/>
						<texture static-src="move.png" width="8" height="8"/>
						<xyz>
							-0.5  0.5  0.5
							 0.5  0.5  0.5
							-0.5  0.5 -0.5
							 0.5  0.5 -0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							-0.5  0.5  0.5
							 0.5  0.5  0.5
							-0.5  0.5 -0.5
							 0.5  0.5 -0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							0.0	1.0	0.0
							1.0	1.0	0.0
							0.0	0.0	0.0
							1.0	0.0	0.0
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<shader vertexshader="first" pixelshader="first">
							<float name="ArrayFactor" value="0.8"/>
						</shader>
					</trianglestrip>
				</container>
				<!-- bottom -->
				<container>
					<variables>
						<float name="side" value="1.0"/>
					</variables>
					<trianglestrip>
						<texture render-target="direct-image-0"/>
						<texture render-target="direct-image-1"/>
						<texture static-src="move.png" width="8" height="8"/>
						<xyz>
							-0.5 -0.5 -0.5
							 0.5 -0.5 -0.5
							-0.5 -0.5  0.5
							 0.5 -0.5  0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							-0.5 -0.5 -0.5
							 0.5 -0.5 -0.5
							-0.5 -0.5  0.5
							 0.5 -0.5  0.5
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<xyz>
							0.0	1.0	0.0
							1.0	1.0	0.0
							0.0	0.0	0.0
							1.0	0.0	0.0
						</xyz>
						<texcoord absolute="false">
							0	1
							1	1
							0	0
							1	0
						</texcoord>
						<shader vertexshader="first" pixelshader="first">
							<float name="ArrayFactor" value="0.8"/>
						</shader>
					</trianglestrip>
				</container>

			</array>
		</world>	
	</worlds>
	<render-instructions>
		<render-to clear-depth="1" clear-color="#FF000000" buffer="back" viewport="background"/>	    
	</render-instructions>
</m3danim>
