shader_Karoseria
{
  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=filter

    shininess=24
    specular=0.75 0.75 0.75
  }
  layer2
  {
    map=Karoseria.tga
    blendfunc=one src_alpha
  }
}
;---------------------------------------------------------------------------------

shader_Blyszczace
{
  sort_offset=0
  ;cull=front
  layer0
  {
    map=Matowe.tga

    blendfunc=blend
    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

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

shader_Alufelgi
{
  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=filter

    shininess=24
    specular=0.75 0.75 0.75
  }
  layer2
  {
    map=Alufelgi.tga
    blendfunc=one src_alpha
  }
}

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

shader_Kolpaki
{
  layer0
  {
    map=Kolpaki.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

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

shader_Matowe
{
  layer0
  {
    map=Matowe.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

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

shader_driver
{
  layer0
  {
    map=driver.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

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

shader_SzybyWew
{
  sort_offset=0
  ;cull=front
  layer0
  {
    map=SzybyWew.tga

    blendfunc=blend
    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

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

shader_Wnetrze
{
  layer0
  {
    map=Wnetrze.tga

    blendfunc=blend
    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

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

shader_Deska
{
  layer0
  {
    map=Deska.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

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

shader_Szyby
{
  sort_offset=1
  ;cull=back
  layer0
  {
   map=Szyby.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_Opony
{
   layer0
  {
    map=Alufelgi.tga
    shininess=10
    specular=0.2 0.2 0.2 1
  }
}

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

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

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

shader_lights_exterior
{
  sort_offset=1
  layer0
  {
    map=lights_exterior.tga
    blendfunc=add
    emission=1 1 1 1
    texenv=replace
  }
}

shader_lights_interior
{
  sort_offset=1
  layer0
  {
    map=lights_interior.tga
    blendfunc=add
    emission=1 1 1 1
    texenv=replace
  }
}
