<?xml version="1.0" encoding="utf-8" ?> 
<shader compiler="xmlshader" name="particle_basic">
  <technique priority="100">
    <pass>
      <mixmode><!--alpha/--><premultalpha /></mixmode>
      <!--<vp plugin="glfixed" file="/shader/vertexlight.fvp"/>-->
      <buffer source="texture coordinate 0" destination="texture coordinate 0" />
      <buffer source="color" destination="color" />
      <texture name="tex diffuse" destination="unit 0" />
      <fp plugin="glfixed">
	<fixedfp>
	  <layer>
	    <colorsource num="0" source="primary color" modifier="color"/>
	    <colorsource num="1" source="texture" modifier="color"/>
	    <coloroperation operation="modulate"/>
	    <alphasource num="0" source="primary color" modifier="alpha"/>
	    <alphasource num="1" source="texture" modifier="alpha"/>
	    <alphaoperation operation="modulate"/>
	  </layer>
	</fixedfp>
      </fp>
    </pass>
  </technique>
  <technique priority="50">
    <pass>
      <mixmode><!--alpha/--><premultalpha /></mixmode>
	<texture name="tex diffuse" destination="unit 0" />
	<buffer source="color" destination="color" />
	<buffer source="texture coordinate 0" destination="texture coordinate" />
	<vp plugin="software" />
	<fp plugin="software">
	  <softfp />
	</fp>
      </pass>
  </technique>
</shader>
