;
; Lambo shaders - for the non-Cg version of Racer
;

;
; Racer shaders
;
Xshader_gloss
{
  compression=0
  reflect=0.5
  specular=1 1 1
  shininess=50
  layer0
  {
    map=img/lambobody.tga
    ;blend=src_alpha one_minus_src_alpha
  }
}
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=img/lambobody.tga
    blendfunc=one src_alpha
    emission=0 0 0 1
    shininess=0
    specular=0 0 0 1
  }
}

shader_matte
{
  layer0
    {
      map=img/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
    }
  Xlayer1
    {
      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
{
  reflect=0.8
  motion_blur=0
  layer0
  {
    map=tirerim.tga
    ;blendfunc=one src_alpha
    ;emission=0 0 0 1
    shininess=50
    specular=1 1 1
    ;ambient=1 1 1
    ;ambient=0.2 0.2 0.2
    diffuse=0.8 0.8 0.8
    ;ambient=1 1 1
  }
}

shader_wheelrear
{
  reflect=0.8
  motion_blur=0
  layer0
  {
    map=tirerimrear.tga
    ;blendfunc=one src_alpha
    ;emission=0 0 0 1
    shininess=50
    specular=1 1 1
    diffuse=0.8 0.8 0.8
    ;ambient=1 1 1
  }
}


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

shader_disc
{
  motion_blur=0
  ; Brake disc
  layer0
  {
    map=brakedisktext.tga
    emission=0 0 0 1
    shininess=32
    specular=1 1 1 1
  }
}

shader_tyre
{
  motion_blur=0
  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_reverselight
{
  layer0
  {
    map=img/lambobody.tga
    blendfunc=add
    depthwrite=0
  }
}

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

;
; Collision.dof shaders
;
shader_hull
{
  layer0
  {
    ; Use a stub (re-used) map
    map=img/lambobody.tga
  }
}
