shader_body
{
cull=none
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=blend
            ;blend
            ;filter
		shininess=24
		specular=0.75 0.01 0.01
            ;0.75 0.75 0.75
          	}
	layer2
	{
		map=Body.tga
		blendfunc=src_alpha one_minus_src_alpha
            ;one src_alpha
	}
}
shader_headlamps
{
layer0
{
		map=body.tga
	}
}
shader_glass
{
  cull=none
  sort_offset=1
  layer0
  {
    map=black.tga
    alphafunc=greater 254  ;variable must be greater than alpha value to make glass transparent
    depthwrite=0
  }
  layer1
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=src_color one_minus_src_color
    depthwrite=0
  }
  layer2
  {
    map=black.tga
    alphafunc=equal 122   ; notequal to alpha value for color,  equal for no color, must have an alphafunc
    blendfunc=src_alpha one_minus_src_alpha
    emission=-1 -1 -1 1  ; colors all pixels not=alpha(122)
    depthwrite=0  
}
}
shader_chrome
{
cull=none
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=blend
            ;blend
            ;filter
		shininess=24
		specular=0.75 0.75 0.75
          	}
	layer2
	{
		map=Chrome.tga
		blendfunc=src_alpha one_minus_src_alpha
            ;one src_alpha
	}
}
shader_mirror
{
layer0
{
    map=$mirror
    texscale_s=1
    texscale_r=1
    texscale_t=1
    emission=0.1 0.1 0.1 1
}
}
shader_trim
{
cull=none
layer0
{
map=trim.tga
}
}
shader_interior
{
cull=none
layer0
{
map=interior.tga
}
}
shader_logo
{
layer0
{
map=body.tga
}
}
shader_interior
{
cull=none
layer0
{
map=interior.tga
}
}
shader_gauge
{
cull=none
layer0
{
map=mph.tga
}
}
shader_tyretread
{
layer0
{
map=tiretread.tga
}
}
shader_tyrewall
{
cull=none
layer0
{
map=Yokohama_A032R_165-70R10_mini.tga
}
}
shader_brakelamps
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    shininess=80
  }  
  layer1
  {
    map=body.tga
    blendfunc=add
    ;shininess=180
    emission=0.45 0.0 0.0
    ;9.55 0.55 0.55
    ;rear lamps
    ambient=0.85 0.0 0.0
    specular=0.8 0.0 0.0
   }
  }
}