shader_body
{
	layer0
	{
		map=gradient.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
		shininess=10
		specular=0.75 0.75 0.75
		blendfunc=filter
	}
	layer2
	{
		map=body.tga
		blendfunc=one src_alpha
	}
}

shader_wood
{
	layer0
	{
		map=gradient.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
		shininess=10
		specular=0.75 0.75 0.75
		blendfunc=filter
	}
	layer2
	{
		map=wood.tga
		blendfunc=one src_alpha
	}
}

;_______________________________________

shader_discoball
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    specular=1 1 1
  }
}

shader_chrome
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    shininess=42
    specular=1 1 1 1
  }
  layer1
  {
    map=chrome.tga
    blendfunc=one src_alpha
    shininess=35
    specular=0.76 0.75 0.74
  }
}

shader_glass
{
 cull=none
 layer0
 {
  map=glass.tga
  depthwrite=0 
  shininess=128
  blendfunc=src_color one_minus_src_alpha 
  mipmap=0
 }
 layer1
 {
  map=$trackenvmap
  depthwrite=0 
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=src_alpha one_minus_src_color
 }
 layer2
 {
  map=glass.tga
  shininess=40
  specular=1 1 1
  depthwrite=0 
  blendfunc=src_color one_minus_src_alpha 
  mipmap=0
 }
}

shader_windscreen
{
 layer0
 {
  map=glass.tga
  depthwrite=0 
  shininess=128
  blendfunc=src_color one_minus_src_alpha 
  mipmap=0
 }
 layer1
 {
  map=$trackenvmap
  depthwrite=0 
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=src_alpha one_minus_src_color
 }
 layer2
 {
  map=glass.tga
  shininess=40
  specular=1 1 1
  depthwrite=0 
  blendfunc=src_color one_minus_src_alpha 
  mipmap=0
 }
}

shader_glass_lights
{
 sort_offset=1
 layer0
 {
  map=lights.tga
  depthwrite=0
  shininess=128
  blendfunc=src_color one_minus_src_alpha 
  mipmap=0
 }
 layer1
 {
  map=$trackenvmap
  depthwrite=0
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=src_alpha one_minus_src_color
 }
 layer2
 {
  map=lights.tga
  shininess=40
  specular=1 1 1
  depthwrite=0
  blendfunc=src_color one_minus_src_alpha 
  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_driver
{
  layer0
  {
    map=driver.tga
  }
}

shader_black
{
  layer0
  {
    map=black.tga
  }
}

shader_darkgray
{
  layer0
  {
    map=darkgray.tga
  }
}

shader_carpet
{
  layer0
  {
    map=carpet.tga
  }
}

shader_interior
{
  layer0
  {
    map=interior.tga
  }
}

shader_underbody
{
  layer0
  {
    map=underbody.tga
  }
}

shader_details
{
  layer0
  {
    map=details.tga
    alphafunc=gequal 16
  }
}

shader_numberplate
{
  layer0
  {
    map=numberplate.tga
  }
}

shader_lights
{
  layer0
  {
    map=lights.tga
  }
}

;_______________________________________

shader_wheel_rim
{
	layer0
	{
		map=gradient.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
                mipmap=1
	}
	layer2
	{
		map=wheel_rim.tga
		blendfunc=one src_alpha
                mipmap=1
	}
}

shader_wheel_tire
{
	layer0
	{
		map=wheel_tire.tga
	}
}

shader_wheel_disk
{
  	layer0
 	{
    		map=$trackenvmap
   		texgen_s=reflection_map
    		texgen_t=reflection_map
    		texgen_r=reflection_map
      		shininess=42
      		specular=1 1 1 1
  	}
  	layer1
  	{
    		map=wheel_disk.tga
    		blendfunc=one src_alpha
  		shininess=35
  		specular=0.76 0.75 0.74
  	}
}

;_______________________________________

shader_lights_exterior
{
  sort_offset=1
  layer0
  {
    map=lights_exterior.tga
    emission=1 1 1 1
    texenv=replace
  }
}

shader_lights_interior
{
  sort_offset=1
  layer0
  {
    map=lights_interior.tga
    blendfunc=add
    emission=1 1 1 1
    texenv=replace
  }
}

shader_lights_plate
{
  sort_offset=1
  layer0
  {
    map=lights_plate.tga
    blendfunc=add
    emission=1 1 1 1
    texenv=replace
  }
}