; Vertex/fragment shader templates
;
{
  ; Specular control using the diffuse's alpha channel
  vertex_shader
  {
    file=dyn_standard_bump_speca_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_bump_speca_f.cg
  }
}
vf_bump
{
  cast_shadow=
  tangents=1
  vertex_shader
  {
    file=dyn_standard_bump_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_bump_f.cg
  }
}
vf_glass
{
  vertex_shader
  {
    file=dyn_standard_reflect_window_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_reflect_window_f.cg
  }
}
vf_reflect
{
  ; Just reflection
  vertex_shader
  {
    file=dyn_standard_reflect_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_reflect_f.cg
  }
}
vf_standard
{
  vertex_shader
  {
    file=dyn_standard_v.cg
  }
  fragment_shader
  {
    file=standard_f.cg
  }
}
vf_reflect_bump
{
  ; Just reflection
  vertex_shader
  {
    file=dyn_standard_reflect_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_reflect_f.cg
  }
}
vf_bump
{
  vertex_shader
  {
    file=dyn_standard_bump_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_bump_f.cg
  }
}
vf_detail_bump
{ 
  ; Texture+bumpmap+reflection map
  vertex_shader
  {
    ;file=cg/dyn_standard_bump_detail_v.cg
    file=dyn_standard_reflect_v.cg
  }
  fragment_shader
  {
    ;file=cg/dyn_standard_bump_detail_f.cg
    file=dyn_standard_reflect_f.cg
  }
}


shader_chrome~vf_reflect
{
        cast_shadow=1
	motion_blur=1
	cull=none
	compression=0
	reflect=0.7
	shininess=45
	diffuse=.5 .5 .5
	ambient=1 1 1 1
	specular=0.25 0.23 0.18 1.00
	fresnel
	{
		bias=0.05
		power=2.0
		scale=1.0
	}
	layer0
	{
		map=$trackenvmap
	}

}


shader_mirror
{
layer0
{
cast_shadow=1
map=$mirror
texscale_s=1
texscale_r=1
texscale_t=1
diffuse=0.015 0.015 0.015 1
ambient=0.015 0.015 0.015 1
}
} 


shader_vehicle_generic_detail2
{
  layer0
  {
    map=vehicle_generic_detail2.tga
  }
}

shader_polongreymat 
{
  layer0
  {
    map=polongreymat.tga
  }
}

shader_polonseatmatwag
{
  layer0
  {
    map=polonseatmatwag.tga
  }
}

shader_polonseatmat2
{
  layer0
  {
    map=polonseatmat2.tga
  }
}


shader_polonstikers
{
  layer0
  {
    map=polonstikers.tga
  }
}
shader_szyby
{
  layer0
  {
    ;depthwrite=0
    map=szyby.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_karoseria
{
  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=karoseria.tga
    blendfunc=one src_alpha
  }
}
shader_czarne
{
  layer0
  {
    map=czarne.tga
  }
}

shader_polonez
{
  layer0
  {
    map=polonez.tga
  }
}

shader_kierownica
{
  layer0
  {
    map=kierownica.tga
  }
}

shader_vehicle_generic_tyrewallblack
{
  layer0
  {
    map=vehicle_generic_tyrewallblack.tga
  }
}

shader_borbet~vf_reflect
{
        cast_shadow=1
	motion_blur=1
	cull=none
	compression=0
	reflect=0.03
	shininess=15
	diffuse=.5 .5 .5
	ambient=1 1 1 1
	specular=0.25 0.23 0.18 1.00
	fresnel
	{
		bias=0.05
		power=2.0
		scale=1.0
	}
	layer0
	{
		map=czarne.tga
	}
	layer1
	{
		map=$trackenvmap
	}
}

shader_shina
{
  layer0
  {
    map=shina.tga
  }
}

shader_white~vf_standard
{
cast_shadow=1
layer0
{ map=white.tga
}
}

shader_polonrearglass~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonrearglass.tga
    blendfunc=blend
  }
}

shader_lights1~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=lights1.tga
    blendfunc=blend
  }
}

shader_lights2~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=lights2.tga
    blendfunc=blend
  }
}

shader_polonheadglass~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonheadglass.tga
    blendfunc=blend
  }
}
shader_polonseatmat2~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonseatmat2.tga
  }
}
shader_polonseatmatwag~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonseatmatwag.tga
  }
}
shader_polongreymat~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polongreymat.tga
  }
}
shader_leater_light1~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=leater_light1.tga
  }
}
shader_vehicle_generic_glasswindows2~vf_reflect
{
cast_shadow=1
;was using dyn_reflect_window.cg - shader is buggy ATM (Racer 088)
;temporarily using chrome shader - no fresnel
sort_offset=1
;sort offset needed, otherwise glass hides lit headlamp models..
reflect=1.0
diffuse=1.0 1.0 1.0
ambient=1.0 1.0 1.0
;cull=none
layer0
{
map=vehicle_generic_glasswindows2.tga
shininess=20
blendfunc=blend
specular=0.0 0.0 0.0 1.0
depthwrite=0
}
layer1
{
 map=$trackenvmap
 depthwrite=0
}
}
shader_polonseatmat~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonseatmat.tga
  }
}
shader_black_plastik~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=black_plastik.tga
  }
}
shader_polonstikers~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonstikers.tga
    blendfunc=blend
  }
}
shader_polonstikers~vf_reflect
{
cast_shadow=1
;was using dyn_reflect_window.cg - shader is buggy ATM (Racer 088)
;temporarily using chrome shader - no fresnel
sort_offset=1
;sort offset needed, otherwise glass hides lit headlamp models..
reflect=1.0
diffuse=1.0 1.0 1.0
ambient=1.0 1.0 1.0
;cull=none
layer0
{
map=polonstikers.tga
shininess=20
blendfunc=blend
specular=0.0 0.0 0.0 1.0
depthwrite=0
}
layer1
{
 map=$trackenvmap
 depthwrite=0
}
}
shader_xromat~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=xromat.tga
  }
}
shader_lampaon
{
  sort_offset=1
  layer0
    {
       map=lampaon.tga
       blendfunc=blend
       texenv=replace
       emission=1 1 1 1
    }
}
shader_lampaon2
{
  sort_offset=1
  layer0
    {
       map=lampaon2.tga
       blendfunc=blend
       texenv=replace
       emission=1 1 1 1
    }
}
shader_hamulec
{
  sort_offset=1
  layer0
    {
       map=hamulec.tga
       blendfunc=blend
       texenv=replace
       emission=1 1 1 1
    }
}
shader_cofanie
{
  sort_offset=1
  layer0
    {
       map=cofanie.tga
       blendfunc=blend
       texenv=replace
       emission=1 1 1 1
    }
}
shader_licznik
{
  sort_offset=1
  layer0
    {
       map=licznik.tga
       blendfunc=blend
       texenv=replace
       emission=1 1 1 1
    }
}
shader_vehiclelights128~vf_standard
{
layer0
{
map=vehiclelights128.tga
}
}
shader_vehiclegrunge256~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=vehiclegrunge256.tga
  }
}
shader_vehiclegeneric256~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=vehiclegeneric256.tga
  }
}
shader_polonindiczad~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonindiczad.tga
    blendfunc=blend
  }
}
shader_tire~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=tire.tga
  }
}
shader_polonconcept~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonconcept.tga
  }
}

shader_polonwagonsteer~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonwagonsteer.tga
  }
}
shader_poloneztruck~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=poloneztruck.tga
  }
}
shader_polonmetalfloor~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonmetalfloor.tga
  }
}
shader_polonseatmat2~vf_standard
{
  cast_shadow=1
  layer0
  {
    map=polonseatmat2.tga
  }
}
shader_polonezon
{
sort_offset=1
layer0
{
map=polonezon.tga
blendfunc=blend
texenv=replace
emission=1 1 1 1
 }
}
shader_polonheadglasson
{
sort_offset=1
layer0
{
map=polonheadglasson.tga
blendfunc=blend
texenv=replace
emission=1 1 1 1
 }
}
shader_luz_estrada
{
  cull=back
 	layer0
  	{
    		map=luz estrada.tga
    		shininess=0
    		specular=0 0 0 1
    		emission=0.1 0.1 0.1 0
    		depthwrite=0
    		blendfunc=src_alpha one
            mipmap_lod_bias=-6
    }
}
shader_naklejka
{
  layer0
  {
    map=naklejka.tga
  }
}