;====================================
;ARO 243 Shader by vEGas
;====================================
;Exterior panels and parts
;====================================
shader_alumin
{
	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=alumin.tga
		blendfunc=one src_alpha
	}
}

shader_black
{
	layer0
	{
		map=black.tga
	}
}
shader_whitea128
{
	layer0
	{
		map=whitea128.tga
	}
}
shader_white64
{
	layer0
	{
		map=white64.tga
	}
}
shader_numar
{
	layer0
	{
		map=numar.tga
	}
}
shader_arotex
{
	layer0
	{
		map=arotex.tga
	}
}
;====================================
;Lights
;====================================
shader_arotex_on
{
  layer0
  {
    map=arotex_on.tga
    blendfunc=blend
    texenv=replace
    emission=1 1 1
    depthwrite=0
  }
}
shader_lights_on1
{
  layer0
  {
    map=lights_on1.tga
    blendfunc=blend
    texenv=replace
    emission=1 1 1
    depthwrite=0
  }
}
shader_lights_on2
{
  layer0
  {
    map=lights_on2.tga
    blendfunc=blend
    texenv=replace
    emission=1 1 1
    depthwrite=0
  }
}
;====================================
;Glass and Mirror(s) - TBA
;====================================

shader_mirror
{
  layer0
  {
    map=$mirror
    emission=0.8 0.8 0.8
  }
  layer1
  {
    map=mirror.tga
    blendfunc=src_color one_minus_src_alpha
  }
}

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


;====================================
;Interior tex
;====================================

shader_dashgrey
{
	layer0
	{
		map=dashgrey.tga
	}
}


shader_arotex
{
	layer0
	{
		map=arotex.tga
	}
}

shader_rezerva
{
	layer0
	{
		map=rezerva.tga
	}
}
;====================================
;Wheels and Tyres
;====================================
shader_spokes
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    texenv=replace
  }
  layer1
  {
    map=spokes.tga
    blendfunc=one src_alpha
    shininess=50
    specular=1 1 1
  }
}
shader_hub
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    texenv=replace
  }
  layer1
  {
    map=hub.tga
    blendfunc=one src_alpha
    shininess=50
    specular=1 1 1
  }
}
shader_chromewheel
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    texenv=replace
  }
  layer1
  {
    map=white.tga
    blendfunc=one src_alpha
    shininess=50
    specular=1 1 1
  }
}
shader_wheel
{
	layer0
	{
		map=wheel.tga
	}
}
;====================================
;Frontal Protection Bar and Side Steps
;====================================
shader_bumper
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    texenv=replace
  }
  layer1
  {
    map=white.tga
    blendfunc=one src_alpha
    shininess=50
    specular=1 1 1
  }
}
shader_underbody
{
  layer0
  {
    map=underbody.tga
  }
}
shader_chrome
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    texenv=replace
  }
  layer1
  {
    map=white.tga
    blendfunc=one src_alpha
    shininess=50
    specular=1 1 1
  }
}