shader_m3gloss
{
  layer0
  {
    map=fresnel.tga
    texgen_s=sphere_map
    texgen_t=sphere_map
    emission=1 1 1 1
  }
  layer1
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=filter

    shininess=24
    specular=0.75 0.75 0.75
  }
  layer2
  {
    map=m3_01.tga
    blendfunc=one src_alpha
  }
}


shader_m3glass
{
  layer0
    {
      map=m3_02.tga
      blendfunc=one src_alpha
    }
  layer1
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
      blendfunc=src_color one
    }
}



shader_m3matte
{
  layer0
    {
      map=m3_01.tga
    }
}


shader_m3under
{
  layer0
    {
      map=m3_02.tga
    }
}


shader_m3decal
{
  layer0
    {
      map=m3_02.tga
      blendfunc=blend
    }
}


shader_wheelgloss
{
  layer0
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map

      shininess=32
      specular=1 1 1 1
    }
  layer1
    {
      map=pwheel.tga
      blendfunc=one src_alpha
    }
}


shader_wheelmatte
{
  layer0
    {
      map=pwheel.tga
    }
}


shader_tyre
{
  layer0
    {
      map=tyre.tga
      shininess=8
      specular=0.1 0.1 0.15 1
    }
}

shader_brakelight
{
  layer0
    {
      map=m3_02.tga
      blendfunc=blend
      texenv=replace
    }
}