;Citroën BX Shader
shader_body
{
layer0
{
map=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=body.tga
blendfunc=one src_alpha
shininess=24
specular=0.15 0.15 0.15 0.15
mipmap=0
}
}
shader_body
{
	sort_offset=0
	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
		emission=0.5 0.5 0.5
		blendfunc=filter
		shininess=24
		specular=0.75 0.75 0.75
	}
	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=body.tga
		blendfunc=one src_alpha
		shininess=24
		specular=0.15 0.15 0.15 0.15	
	}
}
shader_lgrey
{
	layer0
	{
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
	}
	layer1
	{
		map=lgrey.tga
		blendfunc=one src_alpha
	}
}
shader_car00in
{
	layer0
	{
		map=car00.tga
	}
}
shader_black
{
	layer0
	{
		map=black.tga
	}
}
shader_dgrey
{
	layer0
	{
		map=dgrey.tga
	}
}
shader_dash
{
	layer0
	{
		map=dash.tga
	}
}
shader_16vsw
{
	layer0
	{
		map=16vsw.tga
	}
}
shader_bxswhl
{
	layer0
	{
		map=bxstwhl.tga
	}
}
shader_seats
{
	layer0
	{
		map=seats.tga
	}
}
shader_int01
{
	layer0
	{
		map=int01.tga
	}
}
shader_int02
{
	layer0
	{
		map=int02.tga
	}
}
shader_intlit
{
	sort_offset=1
	layer0
	{
		map=intlit.tga
		blendfunc=add
		emission=1 1 1 1
	}
}
shader_gauges
{
	layer0
	{
		map=bexdials.tga
	}
}
shader_gaugesn
{
	sort_offset=1
	layer0
	{
		map=bexdialsn.tga
		blendfunc=add
		emission=1 1 1 1
	}
}
shader_badges
{
	layer0
	{
		map=badges.tga
		blendfunc=blend
	}
}
shader_sidebadges
{
	layer0
	{
		map=sidebadges.tga
		blendfunc=blend
	}
}
shader_wiper
{
	sort_offset=2
	cull=none
	layer0
	{
		map=body.tga
		blendfunc=blend
	}
}
shader_windowsin
{
	sort_offset=3
	layer0
	{
		map=windowsin.tga
		blendfunc=blend
	}
}
shader_transparent
{
	sort_offset=3
	layer0
	{
		map=windows.tga
		blendfunc=blend
	}
}
shader_transparent2
{
	sort_offset=1
	layer0
	{
		;texenv=replace
		map=windows.tga
		blendfunc=blend
	}
	layer1
	{
		;texenv=replace
		map=fresnel2.tga
		texgen_s=sphere_map
		texgen_t=sphere_map
		blendfunc=one dst_alpha
	}
	layer2
	{
		;texenv=replace
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
		blendfunc=dst_alpha one
	}
}
shader_bodyhlight
{
	;cull=none
 	layer0
	{
    		map=body.tga
    		shininess=0
    		specular=0 0 0 1
    		emission=0.13 0.13 0.13 1
    		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
  	}
}
shader_hlights
{
	;cull=none
	sort_offset=-4
 	layer0
	{
    		map=hlights.tga
    		shininess=0
    		specular=0 0 0 1
    		emission=0.13 0.13 0.13 1
    		depthwrite=0
    		blendfunc=blend
  	}
	layer1
	{
		map=lights.tga
		texgen_s=sphere_map
		texgen_t=sphere_map
		texenv=replace
		blendfunc=add
		emission=.9 .9 .9
		depthwrite=0
	}
  	layer2
  	{
    		map=$trackenvmap
    		texgen_s=reflection_map
    		texgen_t=reflection_map
    		texgen_r=reflection_map
    		blendfunc=src_color one_minus_src_color
  	}
}
shader_rlights
{
	sort_offset=1
 	layer0
	{
    		map=rlights.tga
    		emission=1 1 1 1
    		blendfunc=add
  	}
}
;For future use if I find some nice rubber shader :|
;shader_bxgtiwhl01tire
;{
;	layer0
;	{
;		map=bxgtiwhl01.tga
;	}
;
;}
shader_bxgtiwhl01
{
	layer0
	{
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
	}
	layer1
	{
		map=bxgtiwhl01.tga
		;map=bxgtiwhl01b.tga
		blendfunc=one src_alpha
	}
}
shader_bxgtiwhl01tire
{
	layer0
	{
		map=chrome.tga
		texgen_s=sphere_map
		texgen_t=sphere_map
		shininess=20
		specular=1.0 1.0 1.0 1.0
	}
	layer1
	{
		map=bxgtiwhl01.tga
		blendfunc=one src_alpha
	}
}
shader_bxwhl02
{
	layer0
	{
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
	}
	layer1
	{
		map=bxwhl02.tga
		blendfunc=one src_alpha
	}
}
shader_mirror
{
	layer0
	{
		map=$mirror
		emission=1 1 1 1
	}
}
shader_wheel
{
	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
		shininess=24
		specular=0.75 0.75 0.75
	}
	layer2
	{
		map=wheel.tga
		blendfunc=one src_alpha
	}
}
shader_audio
{
	layer0
	{
		map=audio.tga
                mipmap=0
	}
}
shader_cigs
{
	layer0
	{
		map=cigs.tga
                mipmap=0
	}
}