<?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="5" filename="$data/effects/smoke/smoke6x6_diffuse.png"/>
    <File fileId="6" filename="$data/effects/smoke/smoke6x6_normal.png"/>
    <File fileId="1" filename="soil16x4_diffuse.png"/>
    <File fileId="2" filename="soil16x4_normal.png"/>
    <File fileId="9" filename="soil8x4_diffuse.png"/>
    <File fileId="10" filename="soil8x4_normal.png"/>
    <File fileId="7" filename="soil8x8_diffuse.png"/>
    <File fileId="8" filename="soil8x8_normal.png"/>
    <File fileId="3" filename="$data/shaders/psSubUVShader.xml"/>
  </Files>


  <Materials>
    <Material name="smoke_mat" materialId="4" alphaBlending="true" customShaderId="3" shadingRate="4x4" customShaderVariation="subUV">
      <Texture fileId="5"/>
      <Normalmap fileId="6"/>
      <CustomParameter name="colorAlpha" value="0.0723 0.0529 0.0284 1"/>
      <CustomParameter name="playScale" value="30 60 1 0"/>
    </Material>
    <Material name="soil8x8_mat" materialId="5" customShaderId="3" customShaderVariation="subUV">
      <Texture fileId="7"/>
      <Normalmap fileId="8"/>
      <CustomParameter name="colorAlpha" value="1 1 1 1"/>
      <CustomParameter name="playScale" value="30 60 1 0"/>
    </Material>
    <Material name="soil16x4_mat" materialId="6" customShaderId="3">
      <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="soil8x4_mat" materialId="7" customShaderId="3" customShaderVariation="subUVHorizontalByLife">
      <Texture fileId="9"/>
      <Normalmap fileId="10"/>
      <CustomParameter name="colorAlpha" value="1 1 1 1"/>
      <CustomParameter name="playScale" value="30 60 1 0"/>
    </Material>
    <Material name="lambert1" materialId="8" diffuseColor="0.494118 0.494118 0.494118 1">
    </Material>
  </Materials>


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


  <Dynamics>
    <ParticleSystem name="soilEmitter" dynamicId="5" type="sprite" rate="0.0125" lifespan="1400" maxCount="300" speed="0.0024" speedRandom="0" tangentSpeed="0" normalSpeed="1" 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.5 0"/>
    </ParticleSystem>
    <ParticleSystem name="soilEmitter" dynamicId="4" type="sprite" rate="0.0125" lifespan="1000" maxCount="300" speed="0.0024" speedRandom="0" tangentSpeed="0" normalSpeed="1" 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.5 0"/>
    </ParticleSystem>
    <ParticleSystem name="soilEmitter" dynamicId="1" type="sprite" rate="0.0125" lifespan="500" maxCount="300" speed="0.004" speedRandom="0.0002" tangentSpeed="0" normalSpeed="1" spriteScaleX="0.6" spriteScaleY="0.6" blendFactor="1" blendInFactor="0" blendOutFactor="1" depthSort="true" randomInitRotation="true" textureAtlasSizeX="16" textureAtlasSizeY="4">
      <Gravity force="0 -2 0"/>
    </ParticleSystem>
    <ParticleSystem name="smokeEmitter" dynamicId="3" type="sprite" rate="0.0025" lifespan="1000" maxCount="500" speed="0.0005" speedRandom="0" tangentSpeed="0" normalSpeed="1" spriteScaleX="1.5" spriteScaleY="1.5" spriteScaleXGain="0.003" spriteScaleYGain="0.003" blendFactor="0.2" blendInFactor="0.5" blendOutFactor="0.5" depthSort="true" randomInitRotation="true" deltaRotateMin="-0.000349066" deltaRotateMax="0.000349066" textureAtlasSizeX="6" textureAtlasSizeY="6">
      <Gravity force="0 0 0"/>
    </ParticleSystem>
  </Dynamics>

  <Scene>
      <TransformGroup name="soil" nodeId="19">
        <TransformGroup name="soil" nodeId="20">
          <Dynamic dynamicId="1" emitterShapeNodeId="23" name="soilEmitter" clipDistance="100" nodeId="22" materialIds="6" distanceBlending="false">
            <Shape shapeId="2" name="emitShape" nodeId="23" materialIds="8" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
        <TransformGroup name="soil_smoke" translation="-3 0 0" nodeId="24">
          <Dynamic dynamicId="3" emitterShapeNodeId="27" name="soilSmokeEmitter" clipDistance="100" nodeId="26" materialIds="4" distanceBlending="false">
            <Shape shapeId="2" name="emitShape" nodeId="27" materialIds="4" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
        <TransformGroup name="soil_chunks" translation="-6 0 0" nodeId="28">
          <Dynamic dynamicId="4" emitterShapeNodeId="31" name="soilChunksEmitter" clipDistance="100" nodeId="30" materialIds="5" distanceBlending="false">
            <Shape shapeId="2" name="emitShape" rotation="90 -0 0" nodeId="31" materialIds="8" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
        <TransformGroup name="soil_big_chunks" translation="-9 0 0" nodeId="32">
          <Dynamic dynamicId="5" emitterShapeNodeId="35" name="soilChunksEmitter" clipDistance="100" nodeId="34" materialIds="7" distanceBlending="false">
            <Shape shapeId="2" name="emitShape" rotation="90 -0 0" nodeId="35" materialIds="8" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
      </TransformGroup>
  </Scene>

  <UserAttributes>
    <UserAttribute nodeId="22">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="SOIL"/>
    </UserAttribute>
    <UserAttribute nodeId="26">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="SOIL_SMOKE"/>
    </UserAttribute>
    <UserAttribute nodeId="30">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="SOIL_CHUNKS"/>
    </UserAttribute>
    <UserAttribute nodeId="34">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="SOIL_BIG_CHUNKS"/>
    </UserAttribute>
  </UserAttributes>

</i3D>
