<?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="$data/effects/cotton/particle/cotton16x4_diffuse.png"/>
    <File fileId="2" filename="$data/effects/cotton/particle/cotton16x4_normal.png"/>
    <File fileId="3" filename="$data/shaders/psSubUVShader.xml"/>
  </Files>


  <Materials>
    <Material name="cotton16x4_mat" materialId="4" customShaderId="3" customShaderVariation="subUVHorizontal">
      <Texture fileId="1"/>
      <Normalmap fileId="2"/>
      <CustomParameter name="colorAlpha" value="1 1 1 1"/>
      <CustomParameter name="playScale" value="15 30 1 0"/>
    </Material>
    <Material name="lambert1" materialId="5" diffuseColor="0.494118 0.494118 0.494118 1">
    </Material>
  </Materials>


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


  <Dynamics>
    <ParticleSystem name="cottonEmitter" dynamicId="1" type="sprite" rate="0.05" lifespan="1000" maxCount="350" speed="0.004" speedRandom="0.0005" tangentSpeed="0.01" normalSpeed="1" spriteScaleX="0.15" spriteScaleY="0.15" blendFactor="1" blendInFactor="0" blendOutFactor="1" randomInitRotation="true" deltaRotateMin="-0.0015708" deltaRotateMax="0.0015708" textureAtlasSizeX="16" textureAtlasSizeY="4">
      <Gravity force="0 0 0"/>
    </ParticleSystem>
  </Dynamics>

  <Scene>
      <TransformGroup name="LOADING" nodeId="10">
        <TransformGroup name="cotton" nodeId="11">
          <Dynamic dynamicId="1" emitterShapeNodeId="14" name="cottonEmitter" clipDistance="100" nodeId="13" materialIds="4" distanceBlending="false">
            <Shape shapeId="2" name="emitShape" translation="0 4.987 0.967" rotation="-3.699 0 0" nodeId="14" materialIds="5" nonRenderable="true"/>
          </Dynamic>
        </TransformGroup>
      </TransformGroup>
  </Scene>

  <UserAttributes>
    <UserAttribute nodeId="13">
      <Attribute name="fillType" type="string" value="cotton"/>
      <Attribute name="onCreate" type="scriptCallback" value="MaterialUtil.onCreateParticleSystem"/>
      <Attribute name="particleType" type="string" value="LOADING"/>
    </UserAttribute>
  </UserAttributes>

</i3D>
