;====================================
;Fiat PuntoTurbo
;====================================
;
;====================================
shader_bodytga
{
	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=bodytga.tga
		blendfunc=one src_alpha
	}
}
shader_1tga
{
	layer0
	{
		map=1tga.tga
	}
}
shader_2tga
{
	layer0
	{
		map=2tga.tga
	}
}
shader_cartga
{
	layer0
	{
		map=cartga.tga
	}
}
shader_glassred
{
  layer0
  {
    map=glassred.tga
    emission=0 0 0 1
    shininess=0
    specular=0 0 0 1
    blendfunc=blend
    blendfunc=one src_alpha
    depthwrite=0
  }
  layer1
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=src_color one
    depthwrite=0
    emission=0 0 0 1
  }
}
shader_glass 
{
  layer0
  {
    map=glass.tga
    emission=0 0 0 1
    shininess=0
    specular=0 0 0 1
    blendfunc=blend
    blendfunc=one src_alpha
    depthwrite=0
  }
  layer1
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=src_color one
    depthwrite=0
    emission=0 0 0 1
  }
}




shader_lanternas1
{
	layer0
	{
		map=lanternas1.tga
	}
}

















shader_cinza
{
	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=cinza.tga
		blendfunc=one src_alpha
                mipmap=1
	}
}
shader_lowe
{
	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=lowe.tga
		blendfunc=one src_alpha
                mipmap=1
	}
}
shader_logofiat
{
	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=logofiat.tga
		blendfunc=one src_alpha
	}
}
shader_red
{
	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=red.tga
		blendfunc=one src_alpha
	}
}
shader_extra1
{
	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=extra1.tga
		blendfunc=one src_alpha
	}
}
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_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_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_maledriver
{
	layer0
	{
		map=maledriver.tga
	}
}
shader_4
{
	layer0
	{
		map=4.tga
	}
}
shader_brake_pad
{
	layer0
	{
		map=brake_pad.tga
	}
}
shader_carbono
{
	layer0
	{
		map=carbono.tga
	}
}
shader_tire
{
	layer0
	{
		map=tire.tga
	}
}
shader_tread
{
	layer0
	{
		map=tread.tga
	}
}
shader_carpete
{
	layer0
	{
		map=carpete.tga
	}
}
shader_cores
{
	layer0
	{
		map=cores.tga
	}
}
shader_couro1
{
	layer0
	{
		map=couro1.tga
	}
}
shader_fiatmille001
{
	layer0
	{
		map=fiatmille001.tga
	}
}
shader_grafite
{
	layer0
	{
		map=grafite.tga
	}
}
shader_cinza1
{
	layer0
	{
		map=cinza1.tga
	}
}
shader_cinza2
{
	layer0
	{
		map=cinza2.tga
	}
}
shader_punto01
{
	layer0
	{
		map=punto01.tga
	}
}
shader_punto02
{
	layer0
	{
		map=punto02.tga
	}
}
shader_punto03
{
	layer0
	{
		map=punto03.tga
	}
}
shader_punto04
{
	layer0
	{
		map=punto04.tga
	}
}
shader_puntoclube
{
	layer0
	{
		map=puntoclube.tga
		blendfunc=blend
    		depthwrite=0
	}
}
shader_tecido
{
	layer0
	{
		map=tecido.tga
	}
}
shader_tecido2
{
	layer0
	{
		map=tecido2.tga
	}
}
shader_lanternas1
{
	layer0
	{
		map=lanternas1.tga
	}
}
shader_lanternas
{
	layer0
	{
		map=lanternas.tga
	}
}
shader_lanternas2
{
	layer0
	{
		map=lanternas2.tga
	}
}
}
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_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_red1
{
  	layer0
  	{
    		map=red1.tga
    		blendfunc=blend
    		emission=1 1 1 1
  	}
}
shader_lcdspt
{
  	layer0
  	{
    		map=lcdspt.tga
    		blendfunc=blend
    		emission=1 1 1 1
  	}
}


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


;---------------------------------------------------------------------------------
}
shader_rim
{
 layer0
 {
  map=rim.tga
  mipmap=0
 }
}
shader_tire
{
 layer0
 {
  map=tiretread2.tga
  mipmap=0
 }
}

;------------- addons

shader_txt_dashboard_1
{
  layer0
  {
      map=txt_dashboard_1.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    }
}

shader_txt_dashboard_2
{
  layer0
  {
      map=txt_dashboard_2.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    }
}

shader_txt_whitegloss
{
	layer0
	{
		map=txt_fresnel.tga
		texgen_s=sphere_map
		texgen_t=sphere_map
		emission=1 1 1 1
  		mipmap=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
		mipmap=0
	}
	layer2
	{
		map=$tracksunmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
		;blendfunc=one dst_alpha ; Metallized
		blendfunc=dst_color one ; Non-Metallized
		shininess=24
		specular=1 1 1 1
		mipmap=0
	}
	layer3
	{
		map=txt_whitegloss.tga
		blendfunc=one src_alpha
		shininess=24
		specular=0.15 0.15 0.15 0.15
		mipmap=1
	}
}

shader_txt_mirrorplast
{
  layer0
  {
      map=txt_mirrorplast.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
    }
}

shader_txt_mirror
{
  layer0
    {
       map=$mirror
       texscale_s=1
       texscale_r=1
       texscale_t=1
       emission=0.3 0.3 0.3 1
    }
}
shader_reversecamera
{
  layer0
  {
    map=$mirror
    emission=0.6 0.6 0.6
  }
  layer1
  {
    map=reversecam.tga
    blendfunc=src_color one_minus_src_alpha
  }
}
shader_mirror2
{
  layer0
    {
       map=$mirror
       texscale_s=1
       texscale_r=1
       texscale_t=1
       emission=0.3 0.3 0.3 1
    }
}
shader_grigioscuro
{
	layer0
	{
		map=grigioscuro.tga
	}
}
shader_black
{
	layer0
	{
		map=black.tga
	}
}
shader_arancione
{
	layer0
	{
		map=arancione.tga
	}
}
shader_fendinebbia
{
	layer0
	{
		map=fendinebbia.tga
	}
}
shader_cwwing0
{
	layer0
	{
		map=cwwing0.tga
	}
}
shader_seat
{
	layer0
	{
		map=seat.tga
	}
}
shader_color1
{
	layer0
	{
		map=color1.tga
	}
}
shader_Glosnik
{
	layer0
	{
		map=Glosnik.tga
	}
}
shader_Obramowka
{
	layer0
	{
		map=chrome.tga
	}
}
shader_red
{
	layer0
	{
		map=red.tga
	}
}
shader_zex
{
	layer0
	{
		map=zex.tga
	}
}
shader_detals
{
	layer0
	{
		map=detals.tga
	}
}
shader_detals2
{
	layer0
	{
		map=detals2.tga
	}
}
shader_txt_marlboro
{
	layer0
	{
		map=txt_marlboro.tga
	}
}
shader_interior3
{
  layer0
    {
      map=interior3.tga
    blendfunc=blend
    alphafunc=gequal 150
    depthwrite=1
    }
}
shader_e34_m5_ratas
{
	layer0
	{
		map=e34_m5_ratas.tga
	}
}
shader_emzone_stabdziu_diskas
{
	layer0
	{
		map=emzone_stabdziu_diskas.tga
	}
}
shader_swheel
{
	layer0
	{
		map=swheel.tga
	}
}
;------ luci
shader_headlights
{
  layer0
    {
      map=headlights.tga
      emission=1 1 1 1
      shininess=4
      specular=0 0 0 1
      blendfunc=blend
      texenv=replace
    }
}
shader_BRAKES
{
  sort_offset=1
  layer0
  {
    map=BRAKES.tga
    blendfunc=blend
    emission=4 4 4 4 
    texenv=replace
  }
}
shader_2tgaon
{
  sort_offset=1
  layer0
  {
    map=2tgaon.tga
    blendfunc=blend
    emission=4 4 4 4 
    texenv=replace
  }
}
shader_1tgaon
{
  sort_offset=1
  layer0
  {
    map=1tgaon.tga
    blendfunc=blend
    emission=4 4 4 4 
    texenv=replace
  }
}
shader_txt_dashboard_2on
{
  sort_offset=1
  layer0
  {
    map=txt_dashboard_2on.tga
    blendfunc=blend
    emission=4 4 4 4 
    texenv=replace
  }
}
shader_reversecameraon
{
  layer0
  {
    map=$mirror
    emission=34.6 34.6 34.6
  }
  layer1
  {
    map=reversecam.tga
    blendfunc=src_color one_minus_src_alpha
  }
}
shader_1tgaon
{
  sort_offset=1
  layer0
  {
    map=1tgaon.tga
    blendfunc=blend
    emission=4 4 4 4 
    texenv=replace
  }
}
}