shader_fari
{
    layer0
    {
        map=dettagli_Martini.tga
        blendfunc=blend
        depthwrite=1 
    }
    layer1
    {
       map=fresnel.tga
       blendfunc=add
       texgen_s=sphere_map
       texgen_t=sphere_map
       emission=1 1 1 1
       mipmap=1
 }
}


shader_retecalandra
{
 layer0
 {
  map=dettagli_Martini.tga
  blendfunc=blend
  ;blendfunc=dst_alpha src_alpha
  mipmap=0
 }
}


shader_body
{
 layer0
 {
  map=fresnel.tga
  texgen_s=sphere_map
  texgen_t=sphere_map
  emission=1 1 1 1
  mipmap=0
 }   
 layer1
 {
  map=$trackenvmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  emission=0.5 0.5 0.5
  blendfunc=filter
  shininess=24
  specular=0.75 0.75 0.75
  mipmap=0
 }
 layer2
 {
  map=$tracksunmap
  texgen_s=sphere_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=dst_color one 
  shininess=24
  specular=1 1 1 1
  }
  layer3
 {
  map=Body_Martini.tga
  blendfunc=one src_alpha
  shininess=24
  specular=0.15 0.15 0.15 0.15
  mipmap=0
 } 
}

shader_paraurtiant
{
 layer0
 {
  map=fresnel.tga
  texgen_s=sphere_map
  texgen_t=sphere_map
  emission=1 1 1 1
  mipmap=0
 }   
 layer1
 {
  map=$trackenvmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  emission=0.5 0.5 0.5
  blendfunc=filter
  shininess=24
  specular=0.75 0.75 0.75
  mipmap=0
 }
 layer2
 {
  map=$tracksunmap
  texgen_s=sphere_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=dst_color one 
  shininess=24
  specular=1 1 1 1
  }
  layer3
 {
  map=paraurtiant_Martini.tga
  blendfunc=one src_alpha
  shininess=24
  specular=0.15 0.15 0.15 0.15
  mipmap=0
 } 
}

shader_paraurtipost
{
 layer0
 {
  map=fresnel.tga
  texgen_s=sphere_map
  texgen_t=sphere_map
  emission=1 1 1 1
  mipmap=0
 }   
 layer1
 {
  map=$trackenvmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  emission=0.5 0.5 0.5
  blendfunc=filter
  shininess=24
  specular=0.75 0.75 0.75
  mipmap=0
 }
 layer2
 {
  map=$tracksunmap
  texgen_s=sphere_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=dst_color one 
  shininess=24
  specular=1 1 1 1
  }
  layer3
 {
  map=paraurtipost_Martini.tga
  blendfunc=one src_alpha
  shininess=24
  specular=0.15 0.15 0.15 0.15
  mipmap=0
 } 
}


shader_fondo
{
  layer0  
  {    
    map=black.bmp
  }
}

shader_marmitta
{
  layer0  
  {    
    map=body.tga
  }
}

shader_strumentazione
{
  layer0  
  {    
    map=meters.tga
  }
}

shader_interni
{
  layer0  
  {    
    map=interior_lo2.tga
  }
}


shader_steering_wheel
{
  layer0  
  {    
    map=steering_wheel.tga
  }
}

shader_brakelights
{
  layer0 
  {    
    map=dettagli2.tga
    blendfunc=blend
    shininess=128
    specular= 1 1 1 1
    diffuse= .9 .9 .9 1
    ambient= .18 .18 .18 1
    emission= 1 1 1 1
  }
}

shader_lights
{
  layer0 
  {    
    map=dettagli2.tga
    blendfunc=blend
    shininess=128
    specular= 1 1 1 1
    diffuse= .9 .9 .9 1
    ambient= .18 .18 .18 1
    emission= 1 1 1 1
  }
}

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

shader_windowsdelta
{ 
  cull=none
  layer0
  {
    map=windowsdelta2_Martini.tga
    blendfunc=one src_alpha
    mipmap=0
  }
  layer1
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=src_color one_minus_src_color
    emission=0.5 0.5 0.5
    shininess=40
    specular=1 1 1
  }
  layer2
  {
    map=windowsdelta1_Martini.tga
    blendfunc=one src_alpha
    mipmap=0
    shininess=40
    specular=0.1 0.1 0.1
  }
}





;######################
; wheels

shader_speedline2015
{
 layer0
 {
  map=fresnel.tga
  texgen_s=sphere_map
  texgen_t=sphere_map
  emission=1 1 1 1
  mipmap=0
 }   
 layer1
 {
  map=$trackenvmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  emission=0.5 0.5 0.5
  blendfunc=filter
  shininess=24
  specular=0.75 0.75 0.75
  mipmap=0
 }
 layer2
 {
  map=$tracksunmap
  texgen_s=sphere_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=dst_color one 
  shininess=24
  specular=1 1 1 1
  }
  layer3
 {  
  map=Speedline2015_W.tga
  blendfunc=one src_alpha
  shininess=24
  specular=0.15 0.15 0.15 0.15
  mipmap=0
 } 
}


shader_oz_leggera
{
 layer0
 {
  map=oz_leggera.tga
 }
}

shader_brake
{    
    layer0
    {
      map=gradient.tga
      texgen_s=sphere_map
      texgen_t=sphere_map
      emission=1. 1. 1. 1.
    }
    layer1
    {
        map=wheel_slick.tga
        blendfunc=dst_alpha src_alpha
        mipmap=0
    }
}

shader_tire
{
  layer0  
  {    
    map=wheel_slick.tga
  }
}