;====================================
;Land Rover Discovery Shader
;====================================
;Main parts - exterior, interior and glass
;====================================
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=24
		specular=0.75 0.75 0.75
		blendfunc=filter
	}
	layer2
	{
		map=body.tga
		blendfunc=one src_alpha
	}
}

shader_black
{
	layer0
	{
		map=black.tga
	}
}
shader_interior1
{
	layer0
	{
		map=interior1.tga
	}
}
shader_midgrey
{
	layer0
	{
		map=midgrey.tga
	}
}
shader_lowgrey
{
	layer0
	{
		map=lowgrey.tga
	}
}
shader_lgrey
{
	layer0
	{
		map=lgrey.tga
	}
}
shader_details2
{
	layer0
	{
		map=details2.tga
	}
}
shader_details1024
{
	layer0
	{
		map=details1024.tga
	}
}

shader_glass
{
	cull=back
	layer0
	{
		map=glass.tga
		shininess=30
		specular=0.90,0.90,0.90
		diffuse=0.95,0.95,0.95
		ambient=0.13,0.13,0.13
		emission=0.13,0.13,0.13
		depthwrite=0 
		blendfunc=blend
	}
	layer1
	{
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
		blendfunc=src_color one_minus_src_color
	}
}

;====================================
;Wheels and Tyres - Steering Inclusive
;====================================
shader_rim
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    texenv=replace
  }
  layer1
  {
    map=bfgmt.tga
    blendfunc=one src_alpha
    shininess=50
    specular=1 1 1
  }
}
shader_swheel
{
	layer0
	{
		map=swheel.tga
	}
}
;====================================
;Brakelights and Headlights
;====================================
shader_brakes
{
  	layer0
  	{
    		map=brakes.tga
    		blendfunc=blend
    		emission=0.5 0.5 0.5 0.3
  	}
}
shader_lights
{
  	layer0
  	{
    		map=lights.tga
    		blendfunc=blend
    		emission=2.5 2.5 2.5 2
  	}
}
shader_lights1
{
  	layer0
  	{
    		map=lights1.tga
    		blendfunc=blend
    		emission=2.5 2.5 2.5 2
  	}
}

shader_reflect
{
  layer0
  {
    map=$mirror
    emission=0.8 0.8 0.8
  }
  layer1
  {
    map=mirror.tga
    blendfunc=src_color one_minus_src_alpha
  }
}
;====================================
;Driver and Passenger
;====================================
shader_maledriver
{
	layer0
	{
		map=maledriver.tga
	}
}
shader_sorina
{
	layer0
	{
		map=sorina1024.tga
	}
}
shader_map
{
	layer0
	{
		map=map.tga
	}
}