shader_body
{
	cull=none
	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_helmet
{
	cull=none
	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=objects.tga
		blendfunc=one src_alpha
	}
}

;_______________________________________

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
 sort_offset=2
 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=.25 .25 .25
  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_mirror
{
  layer0
    {
       map=$mirror
       texscale_s=1
       texscale_r=1
       texscale_t=1
       emission=0.3 0.3 0.3 1
    }
}

;_______________________________________

shader_drivers
{
  layer0
  {
    map=drivers.tga
  }
}

shader_objects
{
  cull=none
  layer0
  {
    map=objects.tga
  }
}

shader_interior
{
  layer0
  {
    map=interior.tga
  }
}

shader_lights
{
  layer0
  {
    map=lights.tga
  }
}

shader_lights_glass
{
  layer0
  {
    map=lights.tga
    blendfunc=blend
    depthwrite=0
  }
}

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

shader_wheel_tire_sides
{
	layer0
	{
		map=wheel.tga
	}
}

shader_wheel_tire_thread
{
	layer0
	{
		map=wheel_tire_thread.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=lights.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
    alphafunc=gequal 16
    emission=1 1 1 1
    texenv=replace
    depthwrite=1
  }
}

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




;---- addons


shader_disk
{
	layer0
	{
		map=disk.tga
	}
}
shader_remapveh128
{
  layer0
  {
    map=remapveh128.tga
    texgen_s=sphere_map
    texgen_t=sphere_map
    emission=.01 .01 .01 .01
  }
  layer1
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=filter

    shininess=5
    specular=0.05 0.05 0.05
  }
  layer2
  {
    map=remapveh128.tga
    blendfunc=one src_alpha
  }
}

shader_r5t_cabin
{
    layer0
  {
    map=r5t_cabin.tga
   
	}
}
shader_r5t_lights
{
	layer0
	{
		map=r5t_lights.tga
	}
}
shader_suspension
{
	layer0
	{
		map=suspension.tga
	}
}
shader_grills
{
	layer0
	{
		map=grills.tga
	}
}
shader_vehiclelights128
{
	layer0
	{
		map=vehiclelights128.tga
	}
}
shader_r5t_lights_dm
{
	layer0
	{
		map=r5t_lights_dm.tga
	}
}
shader_interior3
{
	layer0
	{
		map=interior3.tga
	}
}
shader_blackseat
{
	layer0
	{
		map=blackseat.tga
	}
}
shader_genericporsche_911rsr_cpit02
{
	layer0
	{
		map=genericporsche_911rsr_cpit02.tga
	}
}
shader_red
{
	layer0
	{
		map=red.tga
	}
}
shader_disk
{
	layer0
	{
		map=disk.tga
	}
}
shader_rex
{
	layer0
	{
		map=rex.tga
	}
}
shader_int2
{
	layer0
	{
		map=int2.tga
	}
}
shader_seat
{
	layer0
	{
		map=seat.tga
	}
}
shader_color1
{
	layer0
	{
		map=color1.tga
	}
}
shader_disk
{
	layer0
	{
		map=disk.tga
	}
}
shader_txt_dashboard
{
	layer0
	{
		map=txt_dashboard.tga
	}
}
shader_disk
{
	layer0
	{
		map=disk.tga
	}
}
shader_disk
{
	layer0
	{
		map=disk.tga
	}
}

shader_headlights
{
  layer0
    {
      map=headlights.tga
      emission=1 1 1 1
      shininess=0
      specular=0 0 0 1
      blendfunc=blend
      texenv=replace
    }
}
shader_r5t_cabinon
{
  sort_offset=1
  layer0
  {
    map=r5t_cabinon.tga
    blendfunc=blend
    emission=1 1 1 1
    texenv=replace
  }
}

shader_r5t_lightson
{
  sort_offset=1
  layer0
  {
    map=r5t_lightson.tga
    blendfunc=blend
    emission=1 1 1 1
    texenv=replace
  }
}

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
  }
}