<shader compiler="shaderweaver" name="simpleweaver2" lights="4">
  <technique priority="100">
    <pass>
      <combiner plugin="crystalspace.graphics3d.shader.combiner.glcg" />

      <snippet id="position" file="/shader/snippets/position.xml" />
      <snippet id="surface" file="/shader/snippets/surface/surface-classic.xml" />
      
      <snippet id="lighting" file="/shader/snippets/lighting/lighting-ppl.xml" />
      <snippet id="apply_lighting" file="/shader/snippets/lighting/apply-lighting.xml" />
      
      <connection from="position" to="lighting" />
      <connection from="surface" to="apply_lighting">
	<explicit from="surfaceColor" to="surfaceDiffuse" />
      </connection>
      <connection from="lighting" to="apply_lighting">
	<explicit from="diffuseColor" to="lightDiffuse" />
      </connection>
      
      <parameter id="lightOffset" type="int">0</parameter>
      <parameter id="maxLights" type="int">4</parameter>
      <connection from="lightOffset" to="apply_lighting" />
      <connection from="maxLights" to="apply_lighting" />
     
    </pass>
  </technique>
</shader>
