<?xml version="1.0" encoding="utf-8"?>
<m3danim length="10">
	<viewports>
	 	<viewport name="background" world="background">
	      <projection-transform>
	        <pixel-perspective />
	      </projection-transform>
	    </viewport>  
	    <viewport name="glitter" world="glitter">
	      <projection-transform>
	        <orthogonal/>
	      </projection-transform>
	    </viewport>
	 </viewports>
	
	<render-targets>
	  <render-target texture="direct-image-0" />
	  <render-target texture="direct-image-1" />
	</render-targets> 
	
	<worlds>
	
	  <world name="background">
		<rect>
			<texture render-target="direct-image-0"/>
			<texture render-target="direct-image-1"/>
			<shader vertexshader="first" pixelshader="first">
			</shader>
		</rect>	 	  
	 </world>	

    <world name="glitter">
      
      <array count="150" randomNumberCount="8">
        <trianglestrip>
          <xyz>
            -.5	-0.5	0.0
            0.5 -0.5	0.0
            -.5	.5	0.0
            0.5	.5	0.0
          </xyz>

          <texcoord absolute="true">
            32	0
            32	32
            0	0
            0	32
          </texcoord>
          <texture static-src="glitter.png"/>
          <shader vertexshader="second" pixelshader="second">
            <float name="texture0Width" value="32"/>
            <float name="texture0Height" value="32"/>
            <float name="xtexvariants" value="3.0"/>
            <float name="ytexvariants" value="2.0"/>
            <float name="texXWidth" value="0.25"/>
            <float name="texYWidth" value="0.25"/>
          </shader>
        </trianglestrip>
      </array>
    </world>
	  
	</worlds>
	<render-instructions>
		<render-to clear-depth="1" clear-color="#FF000000" buffer="back" viewport="background"/>	    
		
		<render-to buffer="back" viewport="glitter"/>
		
	</render-instructions>
	

</m3danim>
