<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>"green"</NAME>
    <PASS>
        <CULL>
            "CULL_NONE"
        </CULL>        
        <TEXTURE>"psycho01"</TEXTURE>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
  	<BLEND> 
     	<SRC> 
     	"BL_ONE"  
     	</SRC> 
     	<DST> 
     	"BL_ONE"  
     	</DST>      
   	</BLEND> 
	<NOZWRITE></>    	
    </PASS>
    <PASS>
     	<FILLMODE>
	"WIREFRAME"
 	</FILLMODE>
    	<COLOR>
		<OP> 
		"PO_SELECTARG1" 
	        </OP> 
	        <ARG1>
	        "PA_TFACTOR" 
	        </ARG1> 
        </COLOR>
	<TFACTORCOLOR>
		<RGB> 0.05f 0.02f 0.0f</>
	</>
  	<BLEND> 
     	<SRC> 
     	"BL_ONE"  
     	</SRC> 
     	<DST> 
     	"BL_ONE"  
     	</DST>      
   	</BLEND> 
<NOZWRITE></>     
    </PASS>
    
</SHADER>

<SHADER>
    <NAME>"face"</NAME>
    <PROJECTBEAMS></>
    <PASS>
        <TEXTURE>"rock01"</TEXTURE>   
        <TEXGEN>
            <TYPE>
	    "TG_PASSTHRU"
            </TYPE>
        </TEXGEN>
  	<BLEND> 
     	<SRC> 
     	"BL_ONE"  
     	</SRC> 
     	<DST> 
     	"BL_ONE"  
     	</DST>      
   	</BLEND>                 
    </PASS>
    <PASS>
        <CULL>
            "CULL_NONE"
        </CULL>        
        <TEXTURE>"rock01"</TEXTURE>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
  	<BLEND> 
     	<SRC> 
     	"BL_ONE"  
     	</SRC> 
     	<DST> 
     	"BL_ONE"  
     	</DST>      
   	</BLEND>         
    </PASS>
</SHADER>

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

<SHADER> 
  <NAME>"particle2"</NAME> 
  <PASS> 
        <TEXTURE>"particle2"</TEXTURE>    
    <NOZWRITE></> 
    <CULL> 
         "CULL_NONE" 
    </CULL> 
  <BLEND> 
     <SRC> 
     "BL_ONE"  
     </SRC> 
     <DST> 
     "BL_ONE"  
     </DST>      
   </BLEND> 
  </PASS> 
</>

<SHADER>
    <NAME>"metaball"</NAME>
    <PASS>
    	<CULL>
    	"CULL_NONE"
    	</CULL>
        <TEXTURE>"CMAP_cloudyhills"</>   
        <TEXGEN>
            <TYPE>
            "TG_CUBEREFLECTION"
            </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></>	
    </>      
</>

<SHADER>
    <NAME>"sferical"</NAME>
    <PASS>
    	<CULL>
    	"CULL_NONE"
    	</CULL>
        <TEXTURE>"CMAP_cloudyhills"</>   
        <TEXGEN>
            <TYPE>
            "TG_CUBEREFLECTION"
            </TYPE>
        </TEXGEN>        
    </PASS>
    <PASS>
        <CULL>
            "CULL_NONE"
        </CULL>        
        <TEXTURE>"psycho01"</TEXTURE>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
  	<BLEND> 
     	<SRC> 
     	"BL_ONE"  
     	</SRC> 
     	<DST> 
     	"BL_ONE"  
     	</DST>      
   	</BLEND> 
	<NOZWRITE></>    	
    </PASS>
</>

<SHADER>
    <NAME>"pared"</NAME>

    <DISTORTNORMAL></>

    <PASS>  
       <TEXTURE>"green"</>   

     <TEXGEN>
        <TYPE>
        "TG_CAMERAREFLECTION"
        </TYPE>
     </>

        <LIGHTING>
        <POWER>
        5.0f
        </POWER>
        </LIGHTING>

    </PASS>
</>

<SHADER>
    <NAME>"flare"</NAME>

    <AUTOSPRITE>
    </AUTOSPRITE>

    <PASS>
        <TEXTURE>"flare"</TEXTURE>   

        <CULL>
            "CULL_NONE"
        </CULL>

        <ZCMP>
            "ALWAYS"
        </ZCMP>

	    <BLEND>
	         <SRC>
	         "BL_ONE"
	         </SRC>
	         <DST>
	         "BL_ONE"
	         </DST>    
	    </BLEND>

        <NOZWRITE></NOZWRITE>

    </PASS>

    <PRIORITY>
	"PR_TRANSPARENT2"
    </PRIORITY>

</SHADER>


<SHADER>
    <NAME>"pared2"</NAME>
    <PASS>
        <TEXTURE>"data"</TEXTURE>   
        <TEXGEN>
            <TYPE>
	    "TG_PASSTHRU"
            </TYPE>
        </TEXGEN>
	    <BLEND>
	         <SRC>
	         "BL_ONE"
	         </SRC>
	         <DST>
	         "BL_ONE"
	         </DST>    
	    </BLEND>
        <LIGHTING>
        <POWER>
        25.0f
        </POWER>
        </LIGHTING>	     
    </PASS>
</SHADER>

<SHADER>
    <NAME>"rock"</NAME>
    <PASS>
        <TEXTURE>"rock01"</TEXTURE>   
        <TEXGEN>
            <TYPE>
	    "TG_PASSTHRU"
            </TYPE>
        </TEXGEN>
    </PASS>
    <PASS>
        <TEXTURE>"psycho01"</TEXTURE>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
  	<BLEND> 
     	<SRC> 
     	"BL_ONE"  
     	</SRC> 
     	<DST> 
     	"BL_ONE"  
     	</DST>      
   	</BLEND> 
    </PASS>
</SHADER>

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

<SHADER>
    <NAME>"linesgreen"</NAME>
    <PASS>
        <TEXTURE>"data"</TEXTURE>   
	    <BLEND>
	         <SRC>
	         "BL_ONE"
	         </SRC>
	         <DST>
	         "BL_ONE"
	         </DST>    
	    </BLEND>
    </PASS>
    <PASS>
        <TEXTURE>"psycho01"</TEXTURE>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
	    <BLEND>
	         <SRC>
	         "BL_ONE"
	         </SRC>
	         <DST>
	         "BL_ONE"
	         </DST>    
	    </BLEND>
    </PASS>

    <PRIORITY>
	"PR_TRANSPARENT"
    </PRIORITY>
   
 </SHADER>
 
 <SHADER>
    <NAME>"sfe_rock"</NAME>
    <PASS>
    <COLOR> 
      <OP>
      "PO_ADD"
      </OP>
      <ARG1>
      "PA_DIFFUSE"
      </ARG1>                  
      <ARG2>
      "PA_TEXTURE"
      </ARG2>                  
	</COLOR>
	
        <TEXTURE>"trauma"</>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
        <LIGHTING>
        <POWER>
        30.0f
        </POWER>
        </LIGHTING>	    

    </PASS>
</SHADER>

<SHADER>
    <NAME>"tubo_luz"</NAME>
    <PROJECTBEAMS></>
    <PASS>
        <TEXTURE>"particle"</TEXTURE>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
	    <BLEND>
	         <SRC>
	         "BL_ONE"
	         </SRC>
	         <DST>
	         "BL_ONE"
	         </DST>    
	    </BLEND>
	<NOZWRITE></>    	
    </PASS>
    <PRIORITY>
	"PR_TRANSPARENT2"
    </PRIORITY>
</SHADER>

<SHADER>
    <NAME>"sfe_tube"</NAME>
	    <PASS>
        <TEXTURE>"psycho02"</>   
        <TEXGEN>
            <TYPE>
            "TG_SPHEREREFLECTION"
            </TYPE>
        </TEXGEN>
        <LIGHTING>
        <POWER>
        2.0f
        </POWER>
        </LIGHTING>	    

    </PASS>
</SHADER>

<SHADER>
    <NAME>"greets"</NAME>
    <PASS>

	    <BLEND>
	         <SRC>
	         "BL_SRCALPHA"
	         </SRC>
	         <DST>
	         "BL_INVSRCALPHA"
	         </DST>  
	    </BLEND>
	    
	<COLOR> 
      		<OP>
      		"PO_SELECTARG1"
      		</OP>
      		<ARG1>
      		"PA_TFACTOR"
      		</ARG1>                  
      	</COLOR>

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

	<TFACTORCOLOR>
		<RGB> 0.0f 0.0f 0.0f</>
	</>
	
	<TFACTORALPHA>
		<WAVE>
	        <TYPE>"WF_CONSTANT"</TYPE>
	        <BASE>0.8f</BASE>        
	        </WAVE>
	</>
	
	<NOZWRITE></>    		  	
    </PASS>
    
    <PRIORITY>
	"PR_TRANSPARENT2"
    	</PRIORITY>
</SHADER>