<?xml version="1.0" encoding="iso-8859-1"?>

<i3D name="horseStepParticleSystem" version="1.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://i3d.giants.ch/schema/i3d-1.6.xsd">
  <Asset>
    <Export program="GIANTS Editor 64bit" version="9.0.1"/>
  </Asset>

  <Files>
    <File fileId="1" filename="$data/effects/smoke/smoke6x6_diffuse.png"/>
    <File fileId="2" filename="$data/effects/smoke/smoke6x6_normal.png"/>
    <File fileId="3" filename="$data/shaders/psSubUVShader.xml"/>
  </Files>


  <Materials>
    <Material name="lambert1" materialId="4" diffuseColor="0.494118 0.494118 0.494118 1">
    </Material>
    <Material name="smoke_mat" materialId="5" alphaBlending="true" customShaderId="3" customShaderVariation="subUV">
      <Texture fileId="1"/>
      <Normalmap fileId="2"/>
      <CustomParameter name="colorAlpha" value="1 1 1 1"/>
      <CustomParameter name="playScale" value="30 60 1 0"/>
    </Material>
  </Materials>


  <Shapes externalShapesFile="horseStepParticleSystem.i3d.shapes">
  </Shapes>


  <Dynamics>
    <ParticleSystem name="emitter1Ref" dynamicId="3" type="sprite" rate="1" lifespan="1500" maxCount="40" maxEmit="5" speed="0.0005" speedRandom="0" tangentSpeed="0.2" normalSpeed="1" spriteScaleX="0.05" spriteScaleY="0.05" spriteScaleXGain="0.001" spriteScaleYGain="0.001" blendFactor="0.1" blendInFactor="0" blendOutFactor="0" depthSort="true" randomInitRotation="true" deltaRotateMin="-0.000349066" deltaRotateMax="0.000349066" textureAtlasSizeX="6" textureAtlasSizeY="6">
      <Gravity force="0 0 0"/>
    </ParticleSystem>
    <ParticleSystem name="emitter1Ref" dynamicId="1" type="sprite" rate="1" lifespan="2500" maxCount="50" maxEmit="6" speed="0" speedRandom="0" tangentSpeed="0.2" normalSpeed="1" spriteScaleX="0.06" spriteScaleY="0.06" spriteScaleXGain="0.002" spriteScaleYGain="0.002" blendFactor="0.1" blendInFactor="0" blendOutFactor="0" depthSort="true" randomInitRotation="true" deltaRotateMin="-0.000349066" deltaRotateMax="0.000349066" textureAtlasSizeX="6" textureAtlasSizeY="6">
      <Gravity force="0 0 0"/>
    </ParticleSystem>
  </Dynamics>

  <Scene>
      <Dynamic dynamicId="1" emitterShapeNodeId="12" name="horseStepFast" clipDistance="200" nodeId="11" materialIds="5" distanceBlending="false">
        <Shape shapeId="2" name="emitShape" nodeId="12" materialIds="4" nonRenderable="true"/>
      </Dynamic>
      <Dynamic dynamicId="3" emitterShapeNodeId="21" name="horseStepSlow" clipDistance="200" nodeId="20" materialIds="5" distanceBlending="false">
        <Shape shapeId="2" name="emitShape" nodeId="21" materialIds="4" nonRenderable="true"/>
      </Dynamic>
  </Scene>

  <UserAttributes>
    <UserAttribute nodeId="11">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="HORSE_STEP_FAST"/>
    </UserAttribute>
    <UserAttribute nodeId="20">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="HORSE_STEP_SLOW"/>
    </UserAttribute>
  </UserAttributes>
</i3D>
