;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::SHADER NA KAROSERIE:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
shader_kolor
{
	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=kolor.tga
		blendfunc=one src_alpha
	}
}
shader_szyby
{
  sort_offset=1
  ;cull=back
  layer0
  {
   map=wind toning.tga
   blendfunc=src_alpha one_minus_src_alpha
   mipmap=0
   depthwrite=0
  }
  layer1 
  {
    depthwrite=0
    texenv=replace
    map=Fresnel2.tga
    texgen_s=sphere_map
    texgen_t=sphere_map
    blendfunc=one dst_alpha
    emission=1 1 1 1
  }
  layer2
  {
   map=$trackenvmap
   texgen_s=reflection_map
   texgen_t=reflection_map
   texgen_r=reflection_map
   blendfunc=src_color one_minus_src_color
   depthwrite=0
   shininess=55
   specular=0.55 0.55 0.55 1
  }
}
shader_klosz
{
  sort_offset=1
  ;cull=back
  layer0
  {
   map=klsoze.tga
   blendfunc=src_alpha one_minus_src_alpha
   mipmap=0
   depthwrite=0
  }
  layer1 
  {
    depthwrite=0
    texenv=replace
    map=Fresnel2.tga
    texgen_s=sphere_map
    texgen_t=sphere_map
    blendfunc=one dst_alpha
    emission=1 1 1 1
  }
  layer2
  {
   map=$trackenvmap
   texgen_s=reflection_map
   texgen_t=reflection_map
   texgen_r=reflection_map
   blendfunc=src_color one_minus_src_color
   depthwrite=0
   shininess=55
   specular=0.55 0.55 0.55 1
  }
}
shader_przednie
{
  sort_offset=1
  layer0
    {
       map=przednie.tga
       texenv=replace
       emission=1 1 1 1
     blendfunc=blend 
   depthwrite=1
    }
}
shader_swiatlo
{
  sort_offset=1
  layer0
    {
       map=swiatlo.tga
       texenv=replace
       emission=1 1 1 1
     blendfunc=blend 
   depthwrite=1
    }
}
shader_rev
{
  sort_offset=1
  layer0
    {
       map=rev.tga
       texenv=replace
       emission=1 1 1 1
     blendfunc=blend 
   depthwrite=1
    }
}
shader_licznik5
{
  sort_offset=1
  layer0
    {
       map=licznik5.tga
       texenv=replace
       emission=1 1 1 1
     blendfunc=blend 
   depthwrite=1
    }
}
shader_licznik4
{
  sort_offset=1
  layer0
    {
       map=licznik4.tga
       texenv=replace
       emission=1 1 1 1
     blendfunc=blend 
   depthwrite=1
    }
}
shader_licznik2
{
  sort_offset=1
  layer0
    {
       map=licznik2.tga
       texenv=replace
       emission=1 1 1 1
     blendfunc=blend 
   depthwrite=1
    }
}
shader_lights1
{
  sort_offset=1
  layer0
    {
       map=lights1.tga
       texenv=replace
       emission=1 1 1 1
     blendfunc=blend 
   depthwrite=1
    }
}
shader_knopers
{
  sort_offset=1
  layer0
    {
       map=knopers.tga
       texenv=replace
       emission=1 1 1 1
     blendfunc=blend 
   depthwrite=1
    }
}
shader_licznik3
{
  sort_offset=1
  layer0
    {
       map=licznik3.tga
       texenv=replace
       emission=1 1 1 1
     blendfunc=blend 
   depthwrite=1
    }
}
shader_licznik1
{
  sort_offset=1
  layer0
    {
       map=licznik1.tga
       texenv=replace
       emission=1 1 1 1
     blendfunc=blend 
   depthwrite=1
    }
}
shader_color
{
  layer0
  {
    map=color.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_leaterlight1
{
  layer0
  {
    map=leater light1.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_vehiclelights128
{
  layer0
  {
    map=vehiclelights128.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_lights
{
	layer0
	{
		map=gradient.tga
		texgen_s=sphere_map
		texgen_t=sphere_map
		emission=0. 0. 0. 0.
	}
	layer1
	{
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
		shininess=1
		specular=0.5 0.5 0.5 0.5
		blendfunc=filter
	}
	layer2
	{
		map=lights.tga
		blendfunc=one src_alpha
	}
}
shader_plastiki
{
  layer0
  {
    map=black.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_pol
{
  layer0
  {
    map=pol.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_nomer2
{
  layer0
  {
    map=nomer2.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_leaterlight1
{
  layer0
  {
    map=leater light1.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_but2
{
  layer0
  {
    map=but2.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_wood
{
	layer0
	{
		map=gradient.tga
		texgen_s=sphere_map
		texgen_t=sphere_map
		emission=0. 0. 0. 0.
	}
	layer1
	{
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
		shininess=1
		specular=0.5 0.5 0.5 0.5
		blendfunc=filter
	}
	layer2
	{
		map=wood.tga
		blendfunc=one src_alpha
	}
}
shader_panel
{
  layer0
  {
    map=panel.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_dinam1
{
  layer0
  {
    map=dinam1.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_dinam2
{
  layer0
  {
    map=dinam2.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_bmw_5s_fars
{
 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
 }
 layer2
 {
   map=bmw_5s_fars.tga
   blendfunc=one src_alpha
 }
 layer3
 {
   map=noise.tga
   blendfunc=one src_alpha
 }
}
shader_dorest
{
  layer0
  {
    map=dorest.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_spcrezine
{
  layer0
  {
    map=spcrezine.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_knopks
{
  layer0
  {
    map=knopks.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_remap
{
   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=10
    specular=0.75 0.75 0.75
   }
   layer2
   {
    map=remap.tga
    blendfunc=one src_alpha
   }
}
shader_underbody
{
  layer0
  {
    map=underbody.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_tire gy
{
  layer0
  {
    map=tire gy.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}

shader_wheel_rim
{
  layer0
  {
    map=wheel_rim.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_logo bmw
{
  layer0
  {
    map=logo bmw.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_logobmw
{
  layer0
  {
    map=logo bmw.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_wheel
{
  layer0
  {
    map=wheels.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_roof
{
  layer0
  {
    map=roof.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_pribors
{
  layer0
  {
    map=pribors.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_licznik
{
  layer0
  {
    map=licznik.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_kovriki
{
  layer0
  {
    map=kovriki.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_but1
{
  layer0
  {
    map=but1.tga
      emission=0 0 0 1
      shininess=0
      specular=0 0 0 1
      depthwrite=1
    blendfunc=blend
  }
}
shader_mirror
{
  layer0
    {
       map=$mirror
       texscale_s=1
       texscale_r=1
       texscale_t=1
       emission=0.3 0.3 0.3 1
    }
}
shader_chrom
{
  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_lights
{
	layer0
	{
		map=gradient.tga
		texgen_s=sphere_map
		texgen_t=sphere_map
		emission=0. 0. 0. 0.
	}
	layer1
	{
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
		shininess=1
		specular=0.5 0.5 0.5 0.5
		blendfunc=filter
	}
	layer2
	{
		map=lights.tga
		blendfunc=one src_alpha
	}
}