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

vf_reflect
{
  cast_shadow=1
  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_bump_speca
{
  ; 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_glass
{
  vertex_shader
  {
    file=dyn_standard_reflect_window_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_reflect_window_f.cg
  }
}

vf_emission
{
  vertex_shader
  {
    file=dyn_standard_v.cg
  }
  fragment_shader
  {
    file=standard_hlight_f.cg
  }
}

vf_bump
{
  cast_shadow=1
  compression=0
  tangents=1
  ; Texture+bumpmap
  vertex_shader
  {
    file=dyn_standard_bump_v.cg
    ;file=dyn_standard_reflect_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_bump_f.cg
    ;file=dyn_standard_reflect_f.cg
  }
}
vf_reflect_chrome
{
  reflect=2.9
  shininess=40
  diffuse=0.1 0.1 0.1 1
  specular=1 1 1 1
  ambient=0.25 0.25 0.25 1
  mipmap_bias=4
  cast_shadow=1
  vertex_shader
  {
    file=dyn_standard_reflect_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_reflect_f.cg
  }
}
vf_standard
{
  cast_shadow=1
  compression=0
  tangents=1
  vertex_shader
  {
    file=dyn_standard_v.cg
  }
  fragment_shader
  {
    file=standard_f.cg
  }
}

vf_bump_reflect
{
  cast_shadow=1
  compression=0
  tangents=1
  ; Texture+bumpmap
  vertex_shader
  {
    file=dyn_standard_bump_reflect_v.cg
  }
  fragment_shader
  {
    file=dyn_standard_bump_reflect_f.cg
  }
}

;body-----------------------------------------------------------------------------

shader_vopsea~vf_reflect
{
  cast_shadow=1
tangents=1
compression=1
reflect=0.2
diffuse=0.75 0.75 0.75 1
ambient=0.6 0.6 0.6 1
shininess=16
specular=0.75 0.75 0.75 1
fresnel
 {
   bias=0.1
   power=3.0
   scale=0.9
 }
layer0
 {
  map=vopsea.tga
 }
layer1
 {
  map=$trackenvmap
 }
}


shader_interior_lod0~vf_standard
{
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=24.57
 layer0
 {
  map=interior_lod0.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_black~vf_standard
{
  cast_shadow=1
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=24.57
 layer0
 {
  map=black.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_chrome~vf_reflect
{
  cast_shadow=1
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=24.57
 layer0
 {
  map=chrome.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_ekran~vf_reflect
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=ekran.tga
   }
layer1
 {
   map=$trackenvmap
 }
}

shader_speeds~vf_standart
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=speeds.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_kmh~vf_standart
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=kmh.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_gri~vf_reflect
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=gri.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_saloncolor~vf_standart
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=saloncolor.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_carpetgrey~vf_standart
{
  cast_shadow=1
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=carpetgrey.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_nodamage~vf_standart
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=nodamage.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_astonmartinracebrakes~vf_standart
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=astonmartinracebrakes.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_sidewall~vf_standart
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=sidewall.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_undercarriage~vf_standart
{
  cast_shadow=1
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=undercarriage.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_chassis~vf_standart
{
  cast_shadow=1
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=chassis.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_rpm~vf_standart
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=rpm.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_dvig~vf_standart
{
  cast_shadow=1
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=dvig.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_midgrey~vf_standart
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=miggrey.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_rosu~vf_standart
{
  cast_shadow=1
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=rosu.tga
   }
layer1
 {
   map=$trackenvmap
 }
}

shader_lights~vf_standart
{
reflect=0.07
ambient=0.937 0.937 0.937
specular=0.137 0.137 0.137
shininess=35.7
 layer0
 {
  map=lights.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_yokohama_advan_neova_ad07~vf_bump
{
  compression=0
  ambient=0.2 0.2 0.2
  diffuse=0.5 0.52 0.53
  specular=0.03 0.03 0.032
  shininess=15
  tangents=1
  layer0
  {
    mipmap_lod_bias=-3
    map=yokohama_advan_neova_ad07.tga
  }
  layer1
  {
     map=$trackenvmap
     mode=linear
  }
}

;mirror---------------------------------------------------------------------------------

shader_mirror
{
  layer0
    {
       map=$mirror
       texscale_s=1
       texscale_r=1
       texscale_t=1
       emission=0.3 0.3 0.3 1
    }
}
;windows--------------------------------------------------------------------------

shader_sticla~vf_glass

{
sort_offset=1
reflect=0.57
diffuse=1 1 1
ambient=1 1 1
layer0
{
  map=sticla.tga
  shininess=753
  blendfunc=blend
 }
 layer1
  {
   map=$trackenvmap
   }
}
shader_grille1~vf_standart
{
  cast_shadow=1
sort_offset=1
reflect=0.57
diffuse=1 1 1
ambient=1 1 1
layer0
{
  map=grille1.tga
  shininess=753
  blendfunc=blend
 }
 layer1
  {
   map=$trackenvmap
   }
}
;brakes&lights-----------------------------------------------------------------------


shader_interiorlod0on~vf_standart
{
  sort_offset=1
  layer0
    {
       map=interiorlod0on.tga
       blendfunc=add
       ;texenv=replace
       emission=160 100 100
    }
}

shader_brake~vf_luminous
{
    cast_shadow=1
sort_offset=1
  layer0
    {
       map=brake.tga
       blendfunc=add
       ;texenv=replace
       emission=80 80 80 80
    }
}
shader_lights_lod0~vf_luminous
{
    cast_shadow=1
sort_offset=1
  layer0
    {
       map=lights_lod0.tga
       blendfunc=add
       ;texenv=replace
       emission=80 80 80 80
    }
}
shader_lanternas~vf_luminous
{
  sort_offset=1
  layer0
    {
       map=lanternas.tga
       blendfunc=add
       ;texenv=replace
       emission=80 80 80 80
    }
}