<?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="1" filename="smoke6x6_diffuse.png"/>
    <File fileId="2" filename="smoke6x6_normal.png"/>
    <File fileId="3" filename="$data/shaders/psSubUVShader.xml"/>
    <File fileId="4" filename="$data/shared/defaultArray_diffuse.png"/>
  </Files>

  <Materials>
    <Material name="smoke_mat" materialId="4" alphaBlending="true" customShaderId="3" customShaderVariation="subUV_fillTypeArray" shadingRate="4x4">
      <Texture fileId="1"/>
      <Normalmap fileId="2"/>
      <Custommap name="fillTypeColorMap" fileId="4"/>
      <CustomParameter name="playScale" value="30 60 1 0"/>
    </Material>
  </Materials>

  <Shapes externalShapesFile="smokeParticles.i3d.shapes">
  </Shapes>

  <Dynamics>
    <ParticleSystem name="smokeEmitter" dynamicId="1" type="sprite" rate="0.01" lifespan="2500" maxCount="500" speed="0.00075" speedRandom="0.00025" tangentSpeed="0.5" normalSpeed="1" spriteScaleX="1" spriteScaleY="1" spriteScaleXGain="0.0025" spriteScaleYGain="0.0025" 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>
      <Dynamic dynamicId="1" emitterShapeNodeId="11" name="smokeEmitter" clipDistance="100" nodeId="10" materialIds="4" distanceBlending="false">
        <Shape shapeId="2" name="emitShape" nodeId="11" materialIds="4" nonRenderable="true"/>
      </Dynamic>
  </Scene>

  <UserAttributes>
    <UserAttribute nodeId="10">
      <Attribute name="particleType" type="string" value="smoke"/>
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
    </UserAttribute>
  </UserAttributes>

</i3D>
