shader_txt_body
{
  layer0
  {
    map=txt_fresnel.tga
    texgen_s=sphere_map
    texgen_t=sphere_map
    emission=1 1 1 1
    mipmap=0
  }
  layer1
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    emission=0.5 0.5 0.5
    blendfunc=filter
    shininess=24
    specular=0.75 0.75 0.75
    mipmap=0
  }
  layer2
  {
    map=$tracksunmap
    texgen_s=sphere_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=dst_color one
    shininess=24
    specular=1 1 1 1
  }
  layer3
  {
    map=txt_body.tga
    blendfunc=one src_alpha
    shininess=24
    specular=0.15 0.15 0.15 0.15
    mipmap=0
  }
}

shader_txt_texture
{
  cull=none
  layer0
  {
    map=txt_texture.tga
    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

shader_txt_windows
{
  cull=none
  layer0
  {
    map=txt_windows.tga
    blendfunc=blend
; one one_minus_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
  }
}

shader_shine
{
  layer0
  {
    map=txt_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=txt_texture.tga
    blendfunc=one src_alpha
  }
}

shader_txt_chr
{
 layer0
 {
  map=txt_chr.tga
  mipmap=0
 }
}




shader_Mirror
{
  layer0
    {
       map=$mirror
       texscale_s=1
       texscale_r=1
       texscale_t=1
       emission=0.3 0.3 0.3 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_txt_brakelights
{
layer0
  {
    map=txt_brakelights.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

shader_txt_licenseplate
{
 layer0
 {
  map=txt_licenseplate.tga
  mipmap=0
 }
}

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_lights
{
  sort_offset=1
  layer0
    {
       map=txt_lights.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}


shader_txt_halo2
{
layer0
{
;Headlamp shaders
blendfunc=blend
depthwrite=0
alphafunc=gequal 10
emission=1.0 1.0 1.0 1.0
map=txt_halo2.tga
}
}

shader_txt_windows_in
{
cull=none
  layer0
  {
    ;depthwrite=0
    map=txt_windows_in.tga
    blendfunc=blend
  }
  layer1
  {
    ;depthwrite=0
    texenv=replace
    map=txt_fresnel2.tga
    texgen_s=sphere_map
    texgen_t=sphere_map
    blendfunc=one dst_alpha
  }
}

;---------------------------------------------------
;==================== Wheel & Brake ================
;---------------------------------------------------

shader_txt_sidewall1
{
   layer0
  {
    map=txt_sidewall1.tga
    shininess=10
    specular=0.2 0.2 0.2 1
  }
}

shader_txt_sidewall2
{
   layer0
  {
    map=txt_sidewall2.tga
    shininess=10
    specular=0.2 0.2 0.2 1
  }
}

shader_txt_sidewall3
{
   layer0
  {
    map=txt_sidewall3.tga
    shininess=10
    specular=0.2 0.2 0.2 1
  }
}

shader_txt_tread1
{
   layer0
  {
    map=txt_tread1.tga
    shininess=10
    specular=0.2 0.2 0.2 1
  }
}

shader_txt_tread2
{
   layer0
  {
    map=txt_tread2.tga
    shininess=10
    specular=0.2 0.2 0.2 1
  }
}

shader_txt_tread3
{
   layer0
  {
    map=txt_tread3.tga
    shininess=10
    specular=0.2 0.2 0.2 1
  }
}

shader_txt_rim1
{
  layer0
  {
    map=txt_rim1.tga
  }
}

shader_txt_rim2
{
  layer0
  {
    map=txt_rim2.tga
  }
}

shader_txt_rim3
{
  layer0
  {
    map=txt_rim3.tga
  }
}

shader_txt_classic1
{
  	
	layer0
   	{
      		map=$trackenvmap
      		texgen_s=reflection_map
      		texgen_t=reflection_map
      		texgen_r=reflection_map
      		shininess=32
      		specular=1 1 1 1
    	}
  	layer1
  	{
    		map=txt_classic1.tga
    		blendfunc=one src_alpha
  	}
}

shader_txt_classic2
{
  	
	layer0
   	{
      		map=$trackenvmap
      		texgen_s=reflection_map
      		texgen_t=reflection_map
      		texgen_r=reflection_map
      		shininess=32
      		specular=1 1 1 1
    	}
  	layer1
  	{
    		map=txt_classic2.tga
    		blendfunc=one src_alpha
  	}
}

shader_txt_classic3
{
  	
	layer0
   	{
      		map=$trackenvmap
      		texgen_s=reflection_map
      		texgen_t=reflection_map
      		texgen_r=reflection_map
      		shininess=32
      		specular=1 1 1 1
    	}
  	layer1
  	{
    		map=txt_classic3.tga
    		blendfunc=one src_alpha
  	}
}