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

<i3D name="particle_materialHolder" 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="8" filename="$data/effects/cultivator/particle/soil8x4_diffuse.png"/>
    <File fileId="9" filename="$data/effects/cultivator/particle/soil8x4_normal.png"/>
    <File fileId="5" filename="$data/effects/cultivator/particle/soil8x8_diffuse.png"/>
    <File fileId="6" filename="$data/effects/cultivator/particle/soil8x8_normal.png"/>
    <File fileId="1" filename="$data/effects/smoke/smoke6x6_diffuse.png"/>
    <File fileId="2" filename="$data/effects/smoke/smoke6x6_normal.png"/>
    <File fileId="10" filename="$data/effects/snow/particle/snow8x8_diffuse.png"/>
    <File fileId="3" filename="$data/shaders/psSubUVShader.xml"/>
  </Files>


  <Materials>
    <Material name="soil8x8_mat" materialId="5" customShaderId="3" customShaderVariation="subUV" shadingRate="2x2">
      <Texture fileId="5"/>
      <Normalmap fileId="6"/>
      <CustomParameter name="colorAlpha" value="1 1 1 1"/>
      <CustomParameter name="playScale" value="30 60 1 0"/>
    </Material>
    <Material name="smoke6x6_mat" materialId="4" alphaBlending="true" customShaderId="3" customShaderVariation="subUV" shadingRate="4x4">
      <Texture fileId="1"/>
      <Normalmap fileId="2"/>
      <CustomParameter name="colorAlpha" value="1 1 1 1"/>
      <CustomParameter name="playScale" value="30 60 1 0"/>
    </Material>
    <Material name="snow8x8_mat" materialId="32" customShaderId="3" customShaderVariation="subUV" shadingRate="2x2">
      <Texture fileId="10"/>
      <Normalmap fileId="6"/>
      <CustomParameter name="colorAlpha" value="1 1 1 1"/>
      <CustomParameter name="playScale" value="30 60 1 0"/>
    </Material>
    <Material name="soil8x4_mat" materialId="6" customShaderId="3" customShaderVariation="subUVHorizontalByLife" shadingRate="2x2">
      <Texture fileId="8"/>
      <Normalmap fileId="9"/>
      <CustomParameter name="colorAlpha" value="1 1 1 1"/>
      <CustomParameter name="playScale" value="30 60 1 0"/>
    </Material>
    <Material name="lambert1" materialId="7" diffuseColor="0.494118 0.494118 0.494118 1">
    </Material>
    <Material name="UnnamedMaterial" materialId="8" diffuseColor="1 1 1 1">
    </Material>
  </Materials>


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


  <Dynamics>
    <ParticleSystem name="emitter1Ref" dynamicId="1" type="sprite" rate="0.15" lifespan="1200" maxCount="600" speed="0.0004" speedRandom="0" tangentSpeed="0.2" normalSpeed="1" emitterShapeVelocityScale="0.1" spriteScaleX="0.25" spriteScaleY="0.25" spriteScaleXGain="0.004" spriteScaleYGain="0.004" blendFactor="0.18" blendInFactor="0.4" blendOutFactor="0.4" randomInitRotation="true" textureAtlasSizeX="6" textureAtlasSizeY="6">
      <Gravity force="0 0.004 0.01"/>
    </ParticleSystem>
    <ParticleSystem name="soilEmitter" dynamicId="4" type="sprite" rate="0.02" lifespan="450" maxCount="300" speed="0.0004" speedRandom="0.0001" tangentSpeed="0.25" normalSpeed="1" emitterShapeVelocityScale="0.97" damping="0.97" spriteScaleX="0.5" spriteScaleY="0.25" blendFactor="1" blendInFactor="0" blendOutFactor="1" depthSort="true" randomInitRotation="true" deltaRotateMin="-0.000349066" deltaRotateMax="0.000349066" textureAtlasSizeX="8" textureAtlasSizeY="4">
      <Gravity force="0 -0.8 0"/>
    </ParticleSystem>
    <ParticleSystem name="snowEmitter" dynamicId="5" type="sprite" rate="0.2" lifespan="500" maxCount="600" speed="0.001" speedRandom="0.0002" tangentSpeed="0.25" normalSpeed="1" emitterShapeVelocityScale="0.9" damping="0.9" spriteScaleX="1.2" spriteScaleY="0.8" blendFactor="1" blendInFactor="0" blendOutFactor="1" depthSort="true" randomInitRotation="true" deltaRotateMin="-0.000349066" deltaRotateMax="0.000349066" textureAtlasSizeX="8" textureAtlasSizeY="8">
      <Gravity force="0 -0.8 0"/>
    </ParticleSystem>
    <ParticleSystem name="soilEmitter" dynamicId="3" type="sprite" rate="0.2" lifespan="500" maxCount="600" speed="0.001" speedRandom="0.0002" tangentSpeed="0.25" normalSpeed="1" emitterShapeVelocityScale="0.9" damping="0.9" spriteScaleX="1.2" spriteScaleY="0.8" blendFactor="1" blendInFactor="0" blendOutFactor="1" depthSort="true" randomInitRotation="true" deltaRotateMin="-0.000349066" deltaRotateMax="0.000349066" textureAtlasSizeX="8" textureAtlasSizeY="8">
      <Gravity force="0 -0.8 0"/>
    </ParticleSystem>
  </Dynamics>

  <Scene>
      <TransformGroup name="wheelParticles" nodeId="17">
        <TransformGroup name="dust" nodeId="18">
          <Dynamic dynamicId="1" emitterShapeNodeId="21" name="dust" clipDistance="200" nodeId="20" materialIds="4" receiveShadows="true" distanceBlending="false">
            <Shape shapeId="2" name="emitterShape" nodeId="21" materialIds="8" nonRenderable="true" distanceBlending="false"/>
          </Dynamic>
        </TransformGroup>
        <TransformGroup name="chunksDry" nodeId="22">
          <Dynamic dynamicId="3" emitterShapeNodeId="25" name="chunksDry" clipDistance="100" nodeId="24" materialIds="5" receiveShadows="true" distanceBlending="false">
            <Shape shapeId="2" name="emitShape" translation="0 1.55103e-09 0" nodeId="25" materialIds="7" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
        <TransformGroup name="chunksWet" nodeId="26">
          <Dynamic dynamicId="4" emitterShapeNodeId="29" name="chunksWet" clipDistance="100" nodeId="28" materialIds="6" receiveShadows="true" distanceBlending="false">
            <Shape shapeId="2" name="emitShape" rotation="90 -0 0" nodeId="29" materialIds="7" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
        <TransformGroup name="chunksSnow" nodeId="37">
          <Dynamic dynamicId="5" emitterShapeNodeId="40" name="chunksSnow" clipDistance="100" nodeId="39" materialIds="32" receiveShadows="true" distanceBlending="false">
            <Shape shapeId="2" name="emitShape" translation="0 1.55103e-09 0" nodeId="40" materialIds="7" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
      </TransformGroup>
  </Scene>

  <UserAttributes>
    <UserAttribute nodeId="20">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="WHEEL_DUST"/>
      <Attribute name="tintable" type="boolean" value="true"/>
    </UserAttribute>
    <UserAttribute nodeId="24">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="WHEEL_DRY"/>
      <Attribute name="tintable" type="boolean" value="false"/>
    </UserAttribute>
    <UserAttribute nodeId="28">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="WHEEL_WET"/>
      <Attribute name="tintable" type="boolean" value="false"/>
    </UserAttribute>
    <UserAttribute nodeId="39">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="WHEEL_SNOW"/>
      <Attribute name="tintable" type="boolean" value="false"/>
    </UserAttribute>
  </UserAttributes>

</i3D>
