shader_BODY
{
 layer0
 {
  map=fresnel.tga
  texgen_s=sphere_map
  texgen_t=sphere_map
  texgen_r=sphere_map
  emission=1 1 1 1 
  mipmap=0 
 }   
 layer1
 {
  map=$trackenvmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=filter
  shininess=24
  ;specular=1 1 1 1
  mipmap=0
 }
 layer2
 {
  map=$tracksunmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=dst_color one 
  shininess=24
  ;specular=1 1 1 1
  mipmap=0
  }
  layer3
 {
  map=fiesta_external.tga
  blendfunc=one src_alpha
  shininess=24
  mipmap=0
 } 
}

;shader_BODY
{
 layer0
 {
  map=fresnel.tga
  texgen_s=sphere_map
  texgen_t=sphere_map
  texgen_r=sphere_map
  emission=1 1 1 1 
  mipmap=0 
 }   
 layer1
 {
  map=$trackenvmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=filter
  shininess=24
  ;specular=1 1 1 1
  mipmap=0
 }
 layer2
 {
  map=$tracksunmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=dst_color one 
  shininess=24
  ;specular=1 1 1 1
  mipmap=0
  }
  layer3
 {
  map=Template.tga
  blendfunc=one src_alpha
  shininess=24
  mipmap=0
 } 
}


shader_INTERNI
{
 layer0
 {
  map=FieInt_.tga
  mipmap=0
 }
}

shader_S_WHEEL
{
 layer0
 {
  map=FieInt_.tga
  mipmap=0
 }
}


shader_VETRI
{
 layer0
 {
  map=FieGla.tga
  depthwrite=0 
  shininess=128
  blendfunc=src_color one_minus_src_alpha 
  mipmap=0
 } 
 layer1
 {
  map=$trackenvmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=src_alpha one_minus_src_color
  shininess=24
  mipmap=0
 }
 ;layer2
 {  
  ;map=$tracksunmap
  ;texgen_s=reflection_map
  ;texgen_t=reflection_map
  ;texgen_r=reflection_map
  ;blendfunc=src_alpha one_minus_src_color
  ;shininess=24
  ;mipmap=0
 } 
}

shader_GRIGLIE
{
 layer0
 {
  map=fiesta_external.tga
  blendfunc=blend
  mipmap=0
 }
}

shader_ALTRO
{  
  layer0
  {
    mipmap=0
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=src_color one_minus_src_color
  }
  layer1
  {
    mipmap=0
    map=fiesta_external_dynamic.tga
  }  
}

shader_SPECCHIETTI
{
 layer0
 {  
  map=$trackenvmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  shininess=24
  specular=1 1 1 1
 }
}


;shader_SPECCHIETTI
{	
  layer0
   {
     map=$mirror
     texscale_s=1
     texscale_r=1
     texscale_t=1
     emission=0.3 0.3 0.3 1
   }
}

shader_lights
{
  layer0
    {
      map=fiesta_external_dynamic_blur2.tga
      emission=2 2 2 1
      shininess=0
      specular=0 0 0 1
      blendfunc=blend
      texenv=replace
    }
}

shader_conelights
{
  layer0
    {
      map=light.tga
      emission=2 2 2 1
      shininess=0
      specular=0 0 0 1
      blendfunc=blend
      texenv=replace
    }
}

shader_brakelights
{
  layer0
    {
      map=fiesta_external_dynamic_blur1.tga
      emission=2 2 2 1
      shininess=0
      specular=0 0 0 1
      blendfunc=blend
      texenv=replace
    }
}


;------------------Ruote--------------------



shader_RIM
{
 layer0
 {
  map=fiesta_external_dynamic.tga
  mipmap=0
  shininess=15
  specular=0.1 0.1 0.1
 }
}

shader_RIM1
{
 layer0
 {
  map=fiesta_external_dynamic_blur1.tga
  mipmap=0
  shininess=15
  specular=0.1 0.1 0.1
 }
}

shader_RIM2
{
 layer0
 {
  map=fiesta_external_dynamic_blur2.tga
  mipmap=0
  shininess=15
  specular=0.1 0.1 0.1
 }
}

shader_RIM3
{
 layer0
 {
  map=fiesta_external_dynamic_blur3.tga
  mipmap=0
  shininess=15
  specular=0.1 0.1 0.1
 }
}

shader_RIM_BLUR1
{
 layer0
 {
  map=fiesta_external_dynamic_blur1.tga
  blendfunc=blend
  mipmap=0
 } 
}

shader_RIM_BLUR2
{
 layer0
 {
  map=fiesta_external_dynamic_blur2.tga
  blendfunc=blend
  mipmap=0
 } 
}

shader_RIM_BLUR3
{
 layer0
 {
  map=fiesta_external_dynamic_blur3.tga
  blendfunc=blend
  mipmap=0
 } 
}

shader_FRONTCOLOR
{
  layer0
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
    }
  layer1
    {
      map=caliper.tga
      mipmap=0
      blendfunc=one src_alpha
    }
}

shader_BRAKE
{
  layer0
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
    }
  layer1
    {
      map=Fiesta Disc.tga
      mipmap=0
      blendfunc=one src_alpha
    }
}

shader_BRAKE1
{
  layer0
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
    }
  layer1
    {
      map=Fiesta Disc_blur1.tga
      mipmap=0
      blendfunc=one src_alpha
    }
}


shader_BRAKE2
{
  layer0
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
    }
  layer1
    {
      map=Fiesta Disc_blur2.tga
      mipmap=0
      blendfunc=one src_alpha
    }
}

shader_BRAKE3
{
  layer0
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
    }
  layer1
    {
      map=Fiesta Disc_blur3.tga
      mipmap=0
      blendfunc=one src_alpha
    }
}