;---VW Golf Mk4 R32 shader by snowball_918 + 1---
shader_Golf_r32_01
{
  sort_offset=-2
  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
   ; --specular effect--
    shininess=18
    specular=0.75 0.75 0.75
  }
  layer2
  {
    map=Golf_r32_01.tga
    blendfunc=one src_alpha
    depthwrite=1
  }
}


shader_Golf_r32_02
{
  sort_offset=0
  layer0
    {
      cull=none
      map=Golf_r32_02.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      blendfunc=one src_alpha
      depthwrite=0
    }
  layer1
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
      blendfunc=src_color one
      depthwrite=0
      emission=0 0 0 1
    }
}
shader_Golf_r32_brakelight
{
  layer0
    {
      map=Golf_r32_02.tga
      emission=2 2 2 1
      shininess=0
      specular=0 0 0 1
      blendfunc=blend
    }
}


shader_Golf_r32_05
{
  sort_offset=-3
  layer0
    {
      map=Golf_r32_05.tga
    }
}


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


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


shader_R32_15spoke_01_blur1
{
 layer0
 {
  map=R32_15spoke_01_blur1.tga
  blendfunc=blend
 }
}


shader_R32_15spoke_01_blur2
{
 layer0
 {
  map=R32_15spoke_01_blur2.tga
  blendfunc=blend
 }
}


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


shader_Golf_r32_06
{
  sort_offset=-1
  layer0
    {
      map=Golf_r32_06.tga
      blendfunc=src_color src_alpha
    }
}


;--------------- addons

shader_TREE2
{
  layer0
  {
    map=TREE2.tga
    blendfunc=blend
    alphafunc=gequal 1
    depthwrite=0
  }
}
;---------------------------------------------------
;====================== Mirror =====================
;---------------------------------------------------


shader_txt_mirror
{
cull=none
layer0
{
    map=$mirror
    texscale_s=1
    texscale_r=1
    texscale_t=1
    emission=0.1 0.1 0.1 1
}
}
shader_txt_halo
{
cull=none
depthwrite=1
layer0
{
    map=txt_halo.tga
    shininess=28
    specular= .02 .02 .02
    diffuse= .9 .9 .9
    ambient= .18 .18 .18
    blendfunc=src_color one
  }
}


shader_vehiclelights128on
{
cull=none
depthwrite=1
layer0
{
    map=vehiclelights128on.tga
    shininess=38
    specular= .02 .02 .02
    diffuse= .99 .99 .99
    ambient= .18 .18 .18
    blendfunc=src_color one
  }
}



shader_rejestracjaon
{
cull=none
depthwrite=1
  layer0
    {
       map=rejestracjaon.tga
shininess=28
    specular= .02 .02 .02
    diffuse= .99 .99 .99
    ambient= .18 .18 .18
    blendfunc=src_color one
    }
}


shader_vehiclelights128farion
{
  sort_offset=1
  layer0
    {
       map=vehiclelights128farion.tga
    shininess=28
    specular= .02 .02 .02
    diffuse= .99 .99 .99
    ambient= .18 .18 .18
    blendfunc=src_color one
    }
}
shader_clockson
{
  sort_offset=1
  layer0
    {
       map=clockson.tga
    shininess=28
    specular= .02 .02 .02
    diffuse= .99 .99 .99
    ambient= .18 .18 .18
    blendfunc=src_color one
    }
}



shader_headlights
{
  layer0
    {
      map=headlights.tga
      emission=1 1 1 1
      shininess=0
      specular=0 0 0 1
      blendfunc=blend
      texenv=replace
    }
}
shader_bodyc
{
  layer0
  {
    map=bodyc.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=10
    specular=0.25 0.25 0.25
  }
  layer2
  {
    map=bodyc.tga
    blendfunc=one src_alpha
  }
}

shader_black000
{
  layer0
  {
    map=black000.tga
  }
}
shader_grigioscuro
{
  layer0
  {
    map=grigioscuro.tga
  }
}
shader_gr2
{
  layer0
  {
    map=gr2.tga
  }
}
shader_tex2
{
  layer0
  {
    map=tex2.tga
  }
}
shader_dettagli
{
  layer0
  {
    map=dettagli.tga
  }
}
shader_plasticbrule
{
  layer0
  {
    map=plasticbrule.tga
  }
}
shader_clocks
{
  layer0
  {
    map=clocks.tga
  }
}
shader_caliper
{
  layer0
  {
    map=caliper.tga
  }
}
shader_seat tex
{
  layer0
  {
    map=seat tex.tga
  }
}
shader_seat tex dark
{
  layer0
  {
    map=seat tex dark.tga
  }
}
shader_caddy lights
{
  layer0
  {
    map=caddy lights.tga
  }
}
shader_grey
{
  layer0
  {
    map=grey.tga
  }
}
shader_rejestracja
{
  layer0
  {
    map=rejestracja.tga
  }
}
shader_vehiclelights128fari
{
  layer0
  {
    map=vehiclelights128fari.tga
  }
}