<?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.3"/>
  </Asset>

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


  <Materials>
    <Material name="lambert1" materialId="4" diffuseColor="0.494118 0.494118 0.494118 1">
    </Material>
    <Material name="particle_mat" materialId="5" alphaBlending="true" customShaderId="2" customShaderVariation="subUV_lightmap" shadingRate="2x2">
      <Texture fileId="1"/>
      <Custommap name="lightMap" fileId="3"/>
      <CustomParameter name="colorAlpha" value="0.5 0.5 0.5 0.5"/>
      <CustomParameter name="playScale" value="15 30 0 0"/>
    </Material>
  </Materials>


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


  <Dynamics>
    <ParticleSystem name="emitter" dynamicId="2" type="sprite" particleShapeId="1" rate="0.005" lifespan="10000" maxCount="500" speed="0.0015" speedRandom="0" tangentSpeed="0.1" normalSpeed="1" spriteScaleX="0.5" spriteScaleY="0.5" spriteScaleXGain="0.0005" spriteScaleYGain="0.0005" blendFactor="1" blendInFactor="0.05" blendOutFactor="0.6" depthSort="true" randomInitRotation="true" deltaRotateMin="-0.000174533" deltaRotateMax="0.000174533" textureAtlasSizeX="6" textureAtlasSizeY="6">
      <Gravity force="0 0 0"/>
    </ParticleSystem>
  </Dynamics>

  <Scene>
      <Dynamic dynamicId="2" emitterShapeNodeId="13" name="emitter" clipDistance="100" nodeId="12" materialIds="5" castsShadows="true" receiveShadows="true" distanceBlending="false">
        <Shape shapeId="3" name="emitShape" rotation="90 -0 0" scale="0.2 0.2 0.2" nodeId="13" materialIds="4" nonRenderable="true"/>
      </Dynamic>
  </Scene>

  <UserAttributes>
    <UserAttribute nodeId="12">
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="SMOKE_CHIMNEY"/>
    </UserAttribute>
  </UserAttributes>

</i3D>
