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

<i3D name="dualTrailer.i3d" 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="10.0.3"/>
  </Asset>

  <Files>
    <File fileId="11" filename="$data/shaders/tireMudShader.xml"/>
    <File fileId="2" filename="$data/shaders/vehicleShader.xml"/>
    <File fileId="19" filename="$data/shared/black_diffuse.dds"/>
    <File fileId="14" filename="$data/shared/detailLibrary/flat_normal.dds"/>
    <File fileId="15" filename="$data/shared/detailLibrary/metallic/clear_diffuse.dds"/>
    <File fileId="13" filename="$data/shared/detailLibrary/metallic/clear_specular.dds"/>
    <File fileId="18" filename="$data/shared/detailLibrary/metallic/scratched_specular.dds"/>
    <File fileId="8" filename="$data/shared/detailLibrary/nonMetallic/dirt_diffuse.png"/>
    <File fileId="6" filename="$data/shared/detailLibrary/nonMetallic/dirt_specular.png"/>
    <File fileId="21" filename="$data/shared/detailLibrary/nonMetallic/metal/metalPainted_diffuse.dds"/>
    <File fileId="20" filename="$data/shared/detailLibrary/nonMetallic/metal/metalPainted_specular.dds"/>
    <File fileId="10" filename="$data/shared/detailLibrary/nonMetallic/mud_normal.png"/>
    <File fileId="5" filename="$data/shared/detailLibrary/nonMetallic/rubber/rubberBlack_diffuse.dds"/>
    <File fileId="4" filename="$data/shared/detailLibrary/nonMetallic/rubber/rubber_normal.dds"/>
    <File fileId="3" filename="$data/shared/detailLibrary/nonMetallic/rubber/rubber_specular.dds"/>
    <File fileId="12" filename="$data/shared/white_diffuse.dds"/>
    <File fileId="1" filename="../textures/gen_dirt_1.dds"/>
  </Files>


  <Materials>
    <Material name="BlackMetal" materialId="5" customShaderId="2">
      <Texture fileId="19"/>
      <Glossmap fileId="1"/>
      <Custommap name="detailSpecular" fileId="20"/>
      <Custommap name="detailNormal" fileId="14"/>
      <Custommap name="detailDiffuse" fileId="21"/>
    </Material>
    <Material name="Chrome_Bright" materialId="6" customShaderId="2">
      <Texture fileId="12"/>
      <Glossmap fileId="1"/>
      <Custommap name="detailSpecular" fileId="13"/>
      <Custommap name="detailNormal" fileId="14"/>
      <Custommap name="detailDiffuse" fileId="15"/>
      <CustomParameter name="colorScale" value="0.8 0.8 0.8"/>
    </Material>
    <Material name="Metal_EXT" materialId="7" diffuseColor="0.294118 0.290196 0.235294 1" customShaderId="2">
      <Glossmap fileId="1"/>
      <Custommap name="detailSpecular" fileId="18"/>
      <Custommap name="detailNormal" fileId="14"/>
      <Custommap name="detailDiffuse" fileId="15"/>
    </Material>
    <Material name="Metal_Powdercoat_Black" materialId="8" diffuseColor="0 0 0 1" specularColor="0.870588 1 0.745098">
    </Material>
    <Material name="MetalDark" materialId="9" customShaderId="2">
      <Texture fileId="12"/>
      <Glossmap fileId="1"/>
      <Custommap name="detailSpecular" fileId="18"/>
      <Custommap name="detailNormal" fileId="14"/>
      <Custommap name="detailDiffuse" fileId="15"/>
      <CustomParameter name="colorScale" value="0.2 0.2 0.2"/>
    </Material>
    <Material name="mud_mat" materialId="10" customShaderId="11">
      <Texture fileId="8"/>
      <Normalmap fileId="10"/>
      <Glossmap fileId="6"/>
      <CustomParameter name="morphPos" value="-0.252 -0.405 0.5 0.05"/>
    </Material>
    <Material name="Rubbee" materialId="11" diffuseColor="0.00392157 0.00392157 0.00392157 1" customShaderId="2">
      <Glossmap fileId="1"/>
      <Custommap name="detailSpecular" fileId="3"/>
      <Custommap name="detailNormal" fileId="4"/>
      <Custommap name="detailDiffuse" fileId="5"/>
    </Material>
    <Material name="rubberBlackMat" materialId="12" customShaderId="2" customShaderVariation="tirePressureDeformation">
      <Glossmap fileId="1"/>
      <Custommap name="detailSpecular" fileId="3"/>
      <Custommap name="detailNormal" fileId="4"/>
      <Custommap name="detailDiffuse" fileId="5"/>
      <CustomParameter name="porosity" value="0.5"/>
    </Material>
  </Materials>


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

  <Scene>
    <TransformGroup name="17_5_Trailer" nodeId="20">
      <TransformGroup name="Tires" nodeId="21">
        <Shape name="trailer175_Tire" shapeId="1" nodeId="22" castsShadows="true" receiveShadows="true" materialIds="12">
          <Shape name="mudMesh" shapeId="2" clipDistance="35" nodeId="23" castsShadows="true" receiveShadows="true" materialIds="10"/>
        </Shape>
      </TransformGroup>
      <TransformGroup name="Wheels" nodeId="24">
        <Shape name="L_Wheel" shapeId="3" nodeId="25" castsShadows="true" receiveShadows="true" materialIds="6,11,7,9,5">
          <Shape name="LDrum" shapeId="4" nodeId="26" castsShadows="true" receiveShadows="true" materialIds="8"/>
        </Shape>
        <Shape name="R_Wheel" shapeId="5" nodeId="27" castsShadows="true" receiveShadows="true" materialIds="6,11,7,9,5">
          <Shape name="RDrum" shapeId="6" nodeId="28" castsShadows="true" receiveShadows="true" materialIds="8"/>
        </Shape>
      </TransformGroup>
    </TransformGroup>
    <Light name="light" rotation="-40 -0 -30" nodeId="29" type="directional" color="1 1 1" emitDiffuse="true" emitSpecular="true" castShadowMap="true" depthMapBias="0.0012" depthMapSlopeScaleBias="2" depthMapSlopeClamp="0.0005" depthMapResolution="1024" shadowFarDistance="1000" shadowExtrusionDistance="200" softShadowsLightSize="0.5" softShadowsLightDistance="15" softShadowsDepthBiasFactor="1" softShadowsMaxPenumbraSize="0.5" numShadowMapSplits="5" shadowMapSplitDistancesParameter="0.9" range="500"/>
  </Scene>

</i3D>
