; 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_reflect
{
  ; Just reflection
  vertex_shader
  {
    file=dyn_standard_reflect_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_reflect_f.cg
  }
}
vf_reflect_bump
{
  ; Texture+bumpmap+reflection map
  vertex_shader
  {
    ;file=dyn_standard_reflect_v.cg
    ;file=dyn_standard_bump_speca_v.cg
    file=dyn_standard_bump_reflect_v.cg
  }
  fragment_shader
  {
    ;file=dyn_standard_reflect_f.cg
    ;file=dyn_standard_bump_speca_f.cg
    file=dyn_standard_bump_reflect_f.cg
  }
}
vf_reflect_window
{
  vertex_shader
  {
    file=dyn_standard_reflect_window_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_reflect_window_f.cg
  }
}
vf_standard
{
  vertex_shader
  {
    file=dyn_standard_v.cg
  }
  fragment_shader
  {
    file=standard_f.cg
  }
}
vf_bump
{
  vertex_shader
  {
    file=dyn_standard_bump_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_bump_f.cg
  }
}
shader_karoseria~vf_reflect
{
  cast_shadow=1
  reflect=0.2
  diffuse=0.50 0 0 1
  ambient=0.50 0 0 1
  specular=1.2 0 0 1
  shininess=24
  mipmap_bias=1
  fresnel
  {
    bias=0.06
    scale=0.98
    power=2
  }
  layer0
  {
    map=karoseria.tga
  }
  layer1
  {
    map=$trackenvmap
  }
}
shader_felga~vf_reflect
{
  cast_shadow=1
  reflect=0.1
  diffuse=0.54 0.00 0.00 1
  ambient=0.45 0.00 0.00 1
  specular=0 0 0 0
  shininess=24
  mipmap_bias=1
  fresnel
  {
    bias=0.06
    scale=0.98
    power=2
  }
  layer0
  {
    map=felga.tga
  }
  layer1
  {
    map=$trackenvmap
  }
}
shader_klocek~vf_reflect
{
  cast_shadow=1
  reflect=0.2
  diffuse=0.50 0 0 1
  ambient=0.50 0 0 1
  specular=1.2 0 0 1
  shininess=24
  mipmap_bias=1
  fresnel
  {
    bias=0.06
    scale=0.98
    power=2
  }
  layer0
  {
    map=klocek.tga
  }
  layer1
  {
    map=$trackenvmap
  }
}
shader_rej~vf_bump
{
  specular=0.28 0.28 0.28
  shininess=46
  layer0
  {
    map=rej.tga
  }
  layer1
  {
    map=rej_bump.tga
    mode=linear
    mipmap_lod_bias=-1
  }
}
shader_windows~vf_reflect
{
;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=szyby.tga
  shininess=20
  blendfunc=blend
  specular=0.0 0.0 0.0 1.0 
  depthwrite=0
 }
 layer1
  {
   map=$trackenvmap
   depthwrite=0
   }
}
shader_szybyklosze~vf_reflect
{
cast_shadow=0
;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=0.05
diffuse=1.0 1.0 1.0
ambient=1.0 1.0 1.0
;cull=none
layer0
{
  map=szybyklosze.tga
  shininess=20
  blendfunc=blend
  specular=0.0 0.0 0.0 1.0 
  depthwrite=0
 }
 layer1
  {
   map=$trackenvmap
   depthwrite=0
   }
}
shader_chrome~vf_reflect
{
  reflect=0.2
  diffuse=0.2 0.2 0.2
  cull=none
  ambient=0.7 0.7 0.7
  shininess=12
  specular=0.1 0.1 0.1 
  ;cull=none
  layer0
  {
    map=chrome.tga
  }
  layer1
  {
    map=$trackenvmap
  }
}
shader_chrome1~vf_reflect
{
  reflect=0.2
  diffuse=0.2 0.2 0.2
  cull=none
  ambient=0.7 0.7 0.7
  shininess=12
  specular=0.1 0.1 0.1 
  ;cull=none
  layer0
  {
    map=chrome1.tga
  }
  layer1
  {
    map=$trackenvmap
  }
}
shader_tlumik~vf_reflect
{
  reflect=0.1
  diffuse=0.2 0.2 0.2
  cull=none
  ambient=0.7 0.7 0.7
  shininess=22
  specular=0.2 0.2 0.2 
  ;cull=none
  layer0
  {
    map=tlumik.tga
  }
  layer1
  {
    map=$trackenvmap
  }
}
shader_interior~vf_bump
{
  specular=0.14 0.14 0.14
  shininess=23
  layer0
  {
    map=interior_lod0.tga
  }
  layer1
  {
    map=interior_bump.tga
    mode=linear
    mipmap_lod_bias=-1
  }
}
shader_int_1~vf_bump
{
  specular=0.14 0.14 0.14
  shininess=13
  layer0
  {
    map=int_1.tga
  }
  layer1
  {
    map=int_1_bump.tga
    mode=linear
    mipmap_lod_bias=-1
  }
}
shader_DVD~vf_bump
{
  specular=0.16 0.16 0.16
  shininess=18
  layer0
  {
    map=DVD.tga
  }
  layer1
  {
    map=DVD_bump.tga
    mode=linear
    mipmap_lod_bias=-1
  }
}
shader_nodamage~vf_bump
{
  cast_shadow=1
  specular=0.28 0.28 0.28
  shininess=46
  layer0
  {
    map=nodamage.tga
  }
  layer1
  {
    map=nodamage_bump.tga
    mode=linear
    mipmap_lod_bias=-1
  }
}
shader_GT2_texal~vf_bump
{
  specular=0.16 0.16 0.16
  shininess=18
  layer0
  {
    map=GT2_texal.tga
  }
  layer1
  {
    map=GT2_texal_bump.tga
    mode=linear
    mipmap_lod_bias=-1
  }
}
shader_grau~vf_standard
{
cast_shadow=1
  layer0
  {
    map=grau.tga
  }
}
shader_zerkalo~vf_standard
{
cast_shadow=1
  layer0
  {
    map=zerkalo.tga
  }
}
shader_undercarriage~vf_standard
{
cast_shadow=1
layer0
 {
  map=undercarriage.tga
  specular=0.05 0.05 0.05
  shininess=24
 blendfunc=blend
 }
}
shader_klocki~vf_standard
{
cast_shadow=1
  layer0
  {
    map=klocki.tga
  }
}
shader_radio~vf_standard
{
cast_shadow=1
  layer0
  {
    map=radio.tga
  }
}
shader_klosze~vf_standard
{
cast_shadow=1
layer0
 {
  map=klosze.tga
 }
}
shader_jdm_juoda~vf_standard
{
cast_shadow=1
layer0
 {
  map=jdm_juoda.tga
 }
}
shader_tyre~vf_bump
{
  specular=0.02 0.02 0.02
  shininess=18
  layer0
  {
    map=tyre.tga
  }
  layer1
  {
    map=tyre_bump.tga
    mode=linear
    mipmap_lod_bias=-1
  }
}
shader_tarcze
{
  layer0
  {
    map=tarcze.tga
    emission=0 0 0 1
    shininess=32
    specular=1 1 1 1
  }
  vertex_shader
  {
    file=dyn_standard_v.cg
  }
  fragment_shader
  {
    file=standard_heat_f.cg
  }
}
shader_bump~vf_standard
{
  layer0
  {
    map=bump.tga
  }
}
shader_czarne~vf_standard
{
  layer0
  {
    map=czarne.tga
  }
}
shader_black~vf_standard
{
  layer0
  {
    map=black.tga
  }
}
-------------silnik---------
shader_engine~vf_bump
{
  specular=0.02 0.02 0.02
  shininess=18
  layer0
  {
    map=engine.tga
  }
  layer1
  {
    map=engine_bump.tga
    mode=linear
    mipmap_lod_bias=-1
  }
}
shader_engine1~vf_bump
{
  specular=0.02 0.02 0.02
  shininess=18
  layer0
  {
    map=engine1.tga
  }
  layer1
  {
    map=engine1_bump.tga
    mode=linear
    mipmap_lod_bias=-1
  }
}
shader_sal_matt1~vf_standard
{
  layer0
  {
    map=sal_matt1.tga
  }
}
shader_silnik~vf_standard
{
  layer0
  {
    map=silnik.tga
  }
}
shader_black1~vf_standard
{
  layer0
  {
    map=black.tga
  }
}
shader_mirror~vf_standard
{
  diffuse=.5 .5 .5
  layer0
    {
       map=$mirror
    }
}
shader_brakes~vf_lumieres
{
  shininess=12
  specular=1 1 1 1
  diffuse=10 10 10 0
  ambient=10 10 10 0
  emission=580 570 580 0 0
  layer0
  {
    map=lights.tga
    blendfunc=blend
  }
}
shader_lights~vf_lumieres
{
  shininess=12
  specular=1 1 1 1
  diffuse=10 10 10 0
  ambient=10 10 10 0
  emission=380 370 380 0 0
  layer0
  {
    map=lights.tga
    blendfunc=blend
  }
}
shader_lightsin~vf_standard
{
  sort_offset=1
  layer0
    {
       map=lightsin.tga
       blendfunc=add
       ;texenv=replace
       emission=30 30 30 1
    }
}
shader_re~vf_standard
{
  sort_offset=1
  layer0
    {
       map=re.tga
       blendfunc=add
       ;texenv=replace
       emission=30 30 30 1
    }
}