<SHADER>
    <NAME>"debug_00"</NAME>
    
    <PASS>

    <TEXTURE>"debug_00.tga"</TEXTURE>   

    <CULL>
         "CULL_NONE"
    </CULL>

    <COLOR> 
      <OP>
      "PO_MODULATE"
      </OP>
      <ARG1>
      "PA_TFACTOR"
      </ARG1>                  
      <ARG2>
      "PA_TEXTURE"
      </ARG2>                  
	</COLOR>

    <ALPHA> 
      <OP>
      "PO_SELECTARG1"
      </OP>
      <ARG1>
      "PA_TEXTURE"
      </ARG1>                  
	</ALPHA>

    <TFACTORCOLOR>
        <WAVE>
        <TYPE>"WF_CONSTANT"</TYPE>
        <BASE>1.0f</BASE>        
        </WAVE>
    </TFACTORCOLOR>


    <BLEND>
	    <SRC>
	    "BL_SRCALPHA"
	    </SRC>
	    <DST>
	    "BL_INVSRCALPHA"
	    </DST>
	</BLEND>

    </PASS>
</SHADER>

<SHADER>
    <NAME>"metal"</NAME>
    <PASS>
        <TEXTURE>"metal"</TEXTURE>
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
    </PASS>  
    <PASS> 
        <TEXTURE>"particle"</TEXTURE>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
	   
    	<CULL>
    	"CULL_NONE"
    	</CULL>
    	
    	<SCALE>
    		<WAVE>
        	<TYPE>"WF_CONSTANT"</TYPE>
        	<BASE> 1.5f </BASE>        
        	</WAVE>
    	</>
        
    	<TEXGEN>
            <TYPE>
            "TG_CUBEREFLECTION"
            </TYPE>
        </TEXGEN>        
        
        <BLEND>
	         <SRC>
	         "BL_ONE"
	         </SRC>
	         <DST>
	         "BL_ONE"
	         </DST>    
	</BLEND>
	
	<NOZWRITE></>	
    </>
    <PASS>
        <TEXTURE>"particle"</TEXTURE>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
    <BLEND>
        <SRC>
        "BL_SRCALPHA"
        </SRC>
        <DST>
        "BL_INVSRCALPHA"
        </DST>    
    </BLEND>                  

    <ALPHA>
        <OP>
        "SELECTARG1"
        </OP>

        <ARG1>
        "PA_TFACTOR"
        </ARG1>
    </ALPHA>

    <TFACTORALPHA>
        <WAVE>
        <TYPE>"WF_CONSTANT"</TYPE>
        <BASE>0.3f</BASE>
        </WAVE>
    </TFACTORALPHA>

    <LIGHTING>
        <AMBIENT>
            1.0f 1.0f 1.0f
        </AMBIENT>

        <DIFFUSE>
            1.0f 1.0f 1.0f
        </DIFFUSE>

        <SPECULAR>
            1.0f 1.0f 1.0f            
        </SPECULAR>

        <POWER>
          55.0f
        </POWER>
    </LIGHTING>


    </PASS> 
      
</>

<SHADER>
    <NAME>"luz"</NAME>
    <PASS> 
        <TEXTURE>"particle"</TEXTURE>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
	   
    	<CULL>
    	"CULL_NONE"
    	</CULL>
    	
        <BLEND>
	         <SRC>
	         "BL_ONE"
	         </SRC>
	         <DST>
	         "BL_ONE"
	         </DST>    
	</BLEND>
	
	<NOZWRITE></>	
    </>
</>


<SHADER>
    <NAME>"wire"</NAME>
    <PASS>
    	<CULL>
    	"CULL_NONE"
    	</CULL>
     	<FILLMODE>
	"WIREFRAME"
 	</FILLMODE>
    	<COLOR>
		<OP> 
		"PO_SELECTARG1" 
	        </OP> 
	        <ARG1>
	        "PA_TFACTOR" 
	        </ARG1> 
        </COLOR>
	<TFACTORCOLOR>
		<RGB> 0.0f 0.05f 0.2f</>
	</>
  	<BLEND> 
     	<SRC> 
     	"BL_ONE"  
     	</SRC> 
     	<DST> 
     	"BL_ONE"  
     	</DST>      
   	</BLEND> 
<NOZWRITE></>     
    </PASS>	
	
</SHADER>
