;====================================
;Mercedes S600 Shader
;====================================
;
;====================================
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=10
		specular=0.75 0.75 0.75
		blendfunc=filter
	}
	layer2
	{
		map=body.tga
		blendfunc=one src_alpha
	}
}
shader_glass1
{
  sort_offset=1
  layer0
  {
   map=glass1.tga
   blendfunc=blend
   mipmap=0
   depthwrite=0
  }
  layer1
  {
   map=$trackenvmap
   texgen_s=reflection_map
   texgen_t=reflection_map
   texgen_r=reflection_map
   blendfunc=src_color one
   depthwrite=0
   shininess=55
   specular=0.55 0.55 0.55
  }
}
shader_w220
{
  sort_offset=1
  layer0
  {
   map=w220.tga
   blendfunc=blend
   mipmap=0
   depthwrite=0
  }
  layer1
  {
   map=$trackenvmap
   texgen_s=reflection_map
   texgen_t=reflection_map
   texgen_r=reflection_map
   blendfunc=src_color one
   depthwrite=0
   shininess=55
   specular=0.55 0.55 0.55
  }
}
shader_glass2
{
cull=back
  layer0
  {
   map=glass2.tga
    shininess=40
    specular=1 1 1 1
    blendfunc=src_color one_minus_src_alpha 
  }
  layer1
  {
   map=$trackenvmap
   texgen_s=reflection_map
   texgen_t=reflection_map
   texgen_r=reflection_map
   blendfunc=src_color one_minus_src_color
  }
  layer2
  {
    map=shine.bmp
    texgen_s=sphere_map
    texgen_t=sphere_map
    texgen_r=sphere_map
    blendfunc=add
  }
}
shader_metal
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
      shininess=32
      specular=1 1 1 1
  }
  layer1
  {
    map=chrome.tga
    blendfunc=one src_alpha
  shininess=25
  specular=0.76 0.75 0.74
  }
}
shader_preto
{
	layer0
	{
		map=preto.tga
	}
}
shader_cinza
{
	layer0
	{
		map=cinza.tga
	}
}
shader_maledriver
{
	layer0
	{
		map=maledriver.tga
	}
}
shader_leather1
{
	layer0
	{
		map=leather1.tga
	}
}
shader_sid
{
	layer0
	{
		map=sid.tga
	}
}
shader_grau
{
	layer0
	{
		map=grau.tga
	}
}
shader_exter
{
	layer0
	{
		map=exter.tga
	}
}
shader_setka
{
	layer0
	{
		map=setka.tga
	}
}
shader_amgplate
{
	layer0
	{
		map=amgplate.tga
	}
}
shader_leather
{
	layer0
	{
		map=leather.tga
	}
}
shader_steklo
{
	layer0
	{
		map=steklo.tga
	}
}
shader_tehnika
{
	layer0
	{
		map=tehnika.tga
	}
}
shader_grau5
{
	layer0
	{
		map=grau5.tga
	}
}
shader_grau4
{
	layer0
	{
		map=grau4.tga
	}
}
shader_wood
{
	layer0
	{
		map=wood.tga
	}
}
shader_knopki
{
	layer0
	{
		map=knopki.tga
	}
}
shader_dno2
{
	layer0
	{
		map=dno2.tga
	}
}
shader_profile
{
	layer0
	{
		map=profile.tga
	}
}
shader_dno
{
	layer0
	{
		map=dno.tga
	}
}
shader_salon
{
	layer0
	{
		map=salon.tga
	}
}
shader_brakes
{
  	layer0
  	{
    		map=brakes.tga
    		blendfunc=blend
    		emission=5 5 5 4.5
  	}
}
shader_mirror
{
  layer0
  {
    map=$mirror
    emission=0.8 0.8 0.8
  }
  layer1
  {
    map=mirror.tga
    blendfunc=src_color one_minus_src_alpha
  }
}
shader_lights
{
  	layer0
  	{
    		map=lights.tga
    		blendfunc=blend
    		emission=1 1 1 1
  	}
}
shader_wheel
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    texenv=replace
  }
  layer1
  {
    map=chrome.tga
    blendfunc=one src_alpha
    shininess=50
    specular=1 1 1
  }
}
shader_logo
{
 layer0
 {
  map=logo.tga
 }
}
shader_tire
{
 layer0
 {
  map=tire.tga
 }
}
shader_tire1
{
 layer0
 {
  map=tire1.tga
 }
}
shader_oz_leggera
{
 layer0
 {
  map=oz_leggera.tga
 }
}
shader_cinza1
{
	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=cinza1.tga
		blendfunc=one src_alpha
	}
}
shader_rodatex
{
	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=rodatex.tga
		blendfunc=one src_alpha
	}
}
shader_bodycolor
{
	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=bodycolor.tga
		blendfunc=one src_alpha
	}
}
shader_baer
{
	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
		blendfunc=filter
		shininess=24
		specular=0.75 0.75 0.75
                mipmap=1
	}
	layer2
	{
		map=baer.tga
		blendfunc=one src_alpha
                mipmap=1
	}
}
shader_baer1
{
	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
		blendfunc=filter
		shininess=24
		specular=0.75 0.75 0.75
                mipmap=1
	}
	layer2
	{
		map=baer1.tga
		blendfunc=one src_alpha
                mipmap=1
	}
}


;---------------------------------------------------------------------------------

shader_light
{
  layer0
  {
    map=light.tga
  }
}
shader_body
{
  layer0
  {
    map=body.tga
  }
}
shader_interior
{
  layer0
  {
    map=interior.tga
  }
}
shader_steer
{
  layer0
  {
    map=steer.tga
  }
}
shader_cinza3
{
  layer0
  {
    map=$tracksunmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
  }
  layer1
  {
    map=cinza2.tga
    ;depthwrite=1
    mipmap=0
    shininess=128
    emission=0.1 0.1 0.1 0.1
    ;specular=0.1 0.1 0.1 1.0
    ;blendfunc=one zero
	blendfunc=one src_alpha
  }
}
shader_volan
{
  layer0
  {
    map=volan.tga
  }
}
shader_stop
{
  layer0
  {
    map=stop.tga
  }
}
shader_brake
{
  layer0
  {
    map=brake.tga
  }
}
shader_contisc2
{
  layer0
  {
    map=contisc2.tga
  }
}
shader_conti
{
  layer0
  {
    map=conti.tga
  }
}
shader_adesivo
{
	layer0
	{
		map=adesivo.tga
		blendfunc=blend
    		depthwrite=0
	}
}
shader_cinza2
{
  layer0
  {
    map=cinza2.tga
  }
}
shader_steer
{
  layer0
  {
    map=steer.tga
  }
}
shader_plate
{
  layer0
  {
    map=plate.tga
  }
}
shader_lanternas
{
  layer0
  {
    map=lanternas.tga
  }
}



shader_metal
{
  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_maledriver
{
  layer0
  {
    map=maledriver.tga
  }
}

;---------------------------------------------------------------------------------

;---------------------------------------------------------------------------------


shader_Windows
{
  layer0
  {
    ;depthwrite=0
    map=Windows.tga
    blendfunc=blend
  }
  layer1
  {
    ;depthwrite=0
    texenv=replace
    map=fresnel2.tga
    texgen_s=sphere_map
    texgen_t=sphere_map
    blendfunc=one dst_alpha
  }
  layer2
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=src_color one
    depthwrite=0
  }
}
shader_Windback
{
  layer0
  {
    ;depthwrite=0
    map=Windback.tga
    blendfunc=blend
  }
  layer1
  {
    ;depthwrite=0
    texenv=replace
    map=fresnel2.tga
    texgen_s=sphere_map
    texgen_t=sphere_map
    blendfunc=one dst_alpha
  }
  layer2
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=src_color one
    depthwrite=0
  }
}
shader_glass
{
  sort_offset=1
  layer0
  {
   map=glass.tga
   blendfunc=blend
   mipmap=0
   depthwrite=0
  }
  layer1
  {
   map=$trackenvmap
   texgen_s=reflection_map
   texgen_t=reflection_map
   texgen_r=reflection_map
   blendfunc=src_color one
   depthwrite=0
   shininess=55
   specular=0.55 0.55 0.55
  }
}



;---------------------------------------------------------------------------------

shader_Mirror
{
  layer0
    {
       map=$mirror
       texscale_s=1
       texscale_r=1
       texscale_t=1
       emission=0.3 0.3 0.3 1
    }
}

;---------------------------------------------------------------------------------

shader_Lights
{
  sort_offset=1
  layer0
    {
       map=Lights.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights1
{
  sort_offset=1
  layer0
    {
       map=Lights1.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights2
{
  sort_offset=1
  layer0
    {
       map=Lights2.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights3
{
  sort_offset=1
  layer0
    {
       map=Lights3.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights4
{
  sort_offset=1
  layer0
    {
       map=Lights4.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights5
{
  sort_offset=1
  layer0
    {
       map=Lights5.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights6
{
  sort_offset=1
  layer0
    {
       map=Lights6.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights8
{
  sort_offset=1
  layer0
    {
       map=Lights8.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}

;---------------------------------------------------------------------------------

shader_Brakes
{
  sort_offset=1
  layer0
    {
       map=Brakes.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
