;
; Lambo shaders
;

;
; Vertex/fragment shader templates
;
vf_ghost
{
  vertex_shader
  {
    file=dyn_standard_ghost_v.cg
  }
  fragment_shader
  {
    file=standard_ghost_f.cg
  }
}
vf_reflect
{
  vertex_shader
  {
    file=dyn_standard_bump_reflect_v.cg
    ;file=dyn_standard_reflect_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_bump_reflect_f.cg
    ;file=dyn_standard_reflect_f.cg
  }
}
vf_standard
{
  vertex_shader
  {
    file=standard_v.cg
  }
  fragment_shader
  {
    file=standard_f.cg
  }
}

;
; Racer shaders
;
shader_gloss~vf_ghost
{
  compression=0
  reflect=0.5
  specular=1 1 1
  shininess=50
  layer0
  {
    map=lambobody.tga
    ;blend=src_alpha one_minus_src_alpha
    blendfunc=blend
  }
}

shader_matte~vf_ghost
{
  layer0
  {
    map=lambobody.tga
    emission=0 0 0 1
    shininess=0
    specular=0 0 0 1
    blendfunc=blend
  }
}


shader_glass~vf_ghost
{
  sort_offset=1
  layer0
  {
    map=glass.tga
    emission=0 0 0 1
    shininess=0
    specular=0 0 0 1
    blendfunc=blend
    ;blendfunc=one src_alpha
  }
}

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

shader_underbody~vf_ghost
{
  layer0
  {
    map=underbodytex.tga
    emission=0 0 0 1
    shininess=0
    specular=0 0 0 1
    blendfunc=blend
  }
}


shader_interior~vf_ghost
{
  layer0
    {
      map=interior.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    blendfunc=blend
    }
}


shader_wheelfront~vf_ghost
{
  motion_blur=0
  layer0
  {
    map=tirerimrear.tga
    blendfunc=blend
    ;blendfunc=one src_alpha
    ;emission=0 0 0 1
    shininess=50
    specular=1 1 1
    ambient=0.2 0.2 0.2
    ;ambient=1 1 1
  }
}

shader_wheelrear~vf_ghost
{
  motion_blur=0
  layer0
  {
    map=tirerimrear.tga
    blendfunc=blend
    ;blendfunc=one src_alpha
    ;emission=0 0 0 1
    shininess=50
    specular=1 1 1
  }
}


shader_wheelinside~vf_ghost
{
  motion_blur=0
  layer0
  {
    map=tireriminside.tga
    emission=0 0 0 1
    shininess=0
    specular=0 0 0 1
    blendfunc=blend
  }
}

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

shader_tyre~vf_ghost
{
  motion_blur=0
  layer0
  {
    map=tiretread.tga
    emission=0 0 0 1
    shininess=0
    specular=0 0 0 1
    blendfunc=blend
  }
}

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


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

shader_reverselight~vf_ghost
{
  layer0
  {
    map=lambobody.tga
    blendfunc=blend
    ;blendfunc=add
    depthwrite=0
  }
}

shader_mirror~vf_ghost
{	
  layer0
  {
     map=$mirror
     texscale_s=1
     texscale_r=1
     texscale_t=1
     emission=0.3 0.3 0.3 1
     blendfunc=blend
  }
}
