;
; Lambo shaders
;
shader_gloss
{
  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
  }
  layer2
  {
    map=lambobody.tga
    blendfunc=one src_alpha
    emission=0 0 0 1
    shininess=0
    specular=0 0 0 1
  }
}


shader_matte
{
  layer0
    {
      map=lambobody.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    }
}


shader_glass
{
  sort_offset=1
  layer0
    {
      map=glass.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      blendfunc=one src_alpha
    }
  layer1
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
      blendfunc=src_color one
      emission=0 0 0 1
    }
}


shader_decal
{
  layer0
    {
      map=glass.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      blendfunc=blend
    }
}


shader_underbody
{
  layer0
    {
      map=underbodytex.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    }
}


shader_interior
{
  layer0
    {
      map=interior.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    }
}


shader_wheelfront
{
  layer0
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
    }
  layer1
    {
      map=tirerim.tga
      blendfunc=one src_alpha
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    }
}

shader_wheelrear
{
  layer0
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
    }
  layer1
    {
      map=tirerimrear.tga
      blendfunc=one src_alpha
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    }
}


shader_wheelinside
{
  layer0
    {
      map=tireriminside.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    }
}

shader_disc
{
  ; Brake disc
  layer0
  {
    map=brakedisktext.tga
    emission=0 0 0 1
    shininess=32
    specular=1 1 1 1
  }
  ; Brakedisc heat shader
  vertex_shader
  {
    ;file=cg/blob.cg
  }
  fragment_shader
  {
    file=cg/disc_heat.cg
  }
}

shader_tyre
{
  layer0
    {
      map=tiretread.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    }
}

shader_shadowmap
{
  layer0
    {
      map=shadowmap.tga
      emission=1 1 1 1
      shininess=0
      specular=0 0 0 1
      texenv=replace
    }
}


shader_brakelight
{
  layer0
    {
      map=brakelight.tga
      emission=1 1 1 1
      shininess=0
      specular=0 0 0 1
      blendfunc=blend
      texenv=replace
    }
}


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