;Mercedes G65------------------------------------------

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
  }
}

vf_luminous
{
  vertex_shader
  {
    file=dyn_standard_v.cg
  }
  fragment_shader
  {
    file=standard_hlight_f.cg
  }
}
;body-----------------------------------------------------------------------------
shader_remap~vf_reflect
{
  cast_shadow=1
  compression=0
  reflect=0.64
  specular=1 1 1
  shininess=52
  ; Need tangents passed while rendering
  tangents=1
  layer0
  {
    map=remap.tga
    ;blend=src_alpha one_minus_src_alpha
  }
  layer1
  {
    ; Reflection cubemap
    map=$trackenvmap
  }
}

shader_sliver4~vf_reflect
{
  cast_shadow=1
  compression=0
  reflect=0.64
  specular=1 1 1
  shininess=52
  ; Need tangents passed while rendering
  tangents=1
  layer0
  {
    map=sliver4.tga
    ;blend=src_alpha one_minus_src_alpha
  }
  layer1
  {
    ; Reflection cubemap
    map=$trackenvmap
  }
}
shader_rendermesh~vf_reflect
{
  cast_shadow=1
  compression=0
  reflect=0.64
  specular=1 1 1
  shininess=52
  ; Need tangents passed while rendering
  tangents=1
  layer0
  {
    map=rendermesh.tga
    ;blend=src_alpha one_minus_src_alpha
  }
  layer1
  {
    ; Reflection cubemap
    map=$trackenvmap
  }
}
shader_silver~vf_reflect
{
  cast_shadow=1
  compression=0
  reflect=0.64
  specular=1 1 1
  shininess=52
  ; Need tangents passed while rendering
  tangents=1
  layer0
  {
    map=silver.tga
    ;blend=src_alpha one_minus_src_alpha
  }
  layer1
  {
    ; Reflection cubemap
    map=$trackenvmap
  }
}
shader_sliver~vf_reflect
{
  cast_shadow=1
  compression=0
  reflect=0.64
  specular=1 1 1
  shininess=52
  ; Need tangents passed while rendering
  tangents=1
  layer0
  {
    map=sliver.tga
    ;blend=src_alpha one_minus_src_alpha
  }
  layer1
  {
    ; Reflection cubemap
    map=$trackenvmap
  }
}
;windows--------------------------------------------------------------------------

shader_windows~vf_glass

{
sort_offset=1
reflect=0.57
diffuse=1 1 1
ambient=1 1 1
layer0
{
  map=windows.tga
  shininess=753
  blendfunc=blend
 }
 layer1
  {
   map=$trackenvmap
   }
}

;wheel&tire-------------------------------------------------------------------------

shader_nodamage_lod0~vf_standart
{
   cast_shadow=1
 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=nodamage_lod0.tga  
}
  layer1
  {
     map=$trackenvmap
     mode=linear
  }
}
shader_wheel_lod0~vf_standart
{
   cast_shadow=1
 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=wheel_lod0.tga  
}
  layer1
  {
     map=$trackenvmap
     mode=linear
  }
}
shader_wheel~vf_reflect
{
   cast_shadow=1
 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=wheel.tga  
}
  layer1
  {
     map=$trackenvmap
     mode=linear
  }
}
shader_tirea0~vf_bump
{
   cast_shadow=1
 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=tirea0.tga  
}
  layer1
  {
     map=$trackenvmap
     mode=linear
  }
}
shader_g65_shadow_wheel~vf_standart
{
   cast_shadow=1
 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=g65_shadow_wheel.tga  
}
  layer1
  {
     map=$trackenvmap
     mode=linear
  }
}
;lights-------------------------------------------------------------------------
shader_vehiclelights~vf_vf_luminous
{
reflect=0.357
ambient=0.73 0.73 0.73
shininess=17
specular=0.73 0.73 0.73
;cull=none
layer0
{
  map=vehiclelights.tga
 }
 layer1
  {
   map=$trackenvmap
   }
}
shader_interior_lod0~vf_vf_standart
{
reflect=0.357
ambient=0.73 0.73 0.73
shininess=17
specular=0.73 0.73 0.73
;cull=none
layer0
{
  map=interior_lod0.tga
 }
 layer1
  {
   map=$trackenvmap
   }
}
;standart-------------------------------------------------------------------------
shader_undercarriage~vf_standard
{
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=13.57
 layer0
 {
  map=undercarriage.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_black~vf_standard
{
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=13.57
 layer0
 {
  map=black.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_12~vf_standard
{
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=13.57
 layer0
 {
  map=12.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_grille1~vf_standard
{
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=13.57
 layer0
 {
  map=grille1.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_ns~vf_standard
{
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=13.57
 layer0
 {
  map=ns.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_moquette1~vf_standard
{
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=13.57
 layer0
 {
  map=moquette1.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_engine~vf_standard
{
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=13.57
 layer0
 {
  map=engine.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_tex_01~vf_standard
{
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=13.57
 layer0
 {
  map=tex_01.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_wood~vf_standard
{
reflect=0.07
ambient=1 1 1
specular=0.07 0.07 0.07
shininess=13.57
 layer0
 {
  map=wood.tga
   }
layer1
 {
   map=$trackenvmap
 }
}
shader_1~vf_standard
{
reflect=0.237
diffuse=1 1 1
ambient=0.7 0.7 0.7
layer0
{
  map=1.tga
  shininess=20
  blendfunc=blend
  depthwrite=0
 }
 layer1
  {
   map=$trackenvmap
   depthwrite=0
   }
}
shader_leather2~vf_standard
{
reflect=0.237
diffuse=1 1 1
ambient=0.7 0.7 0.7
layer0
{
  map=leather2.tga
  shininess=20
  blendfunc=blend
  depthwrite=0
 }
 layer1
  {
   map=$trackenvmap
   depthwrite=0
   }
}
shader_cab1~vf_standard
{
reflect=0.237
diffuse=1 1 1
ambient=0.7 0.7 0.7
layer0
{
  map=cab1.tga
  shininess=20
  blendfunc=blend
  depthwrite=0
 }
 layer1
  {
   map=$trackenvmap
   depthwrite=0
   }
}
shader_yb~vf_standard
{
layer0
{
diffuse=1.0  1.0  1.0
emission=10 10 10
map=yb.tga
}
}

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

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

;brakes&lights-----------------------------------------------------------------------

shader_interior_on~vf_luminous
{
  sort_offset=1
  layer0
    {
       map=interior_on.tga
       blendfunc=add
       ;texenv=replace
       emission=160 100 100 300
    }
}
shader_lights_lod0~vf_luminous
{
  sort_offset=1
  layer0
    {
       map=lights_lod0.tga
       blendfunc=add
       ;texenv=replace
       emission=160 100 100 300
    }
}
shader_1_on~vf_luminous
{
  sort_offset=1
  layer0
    {
       map=1_on.tga
       blendfunc=blend
       ;texenv=replace
       emission=160 100 100 300
    }
}

shader_yb_on~vf_luminous
{
  sort_offset=1
  layer0
    {
       map=yb_on.tga
       blendfunc=add
       ;texenv=replace
       emission=200 200 200 200
    }
}
shader_signal~vf_luminous
{
  sort_offset=1
  layer0
    {
       map=signal.tga
       blendfunc=add
       ;texenv=replace
       emission=200 200 200 200
    }
}
shader_vehiclelights_on~vf_luminous
{
  sort_offset=1
  layer0
    {
       map=vehiclelights_on.tga
       blendfunc=add
       ;texenv=replace
       emission=200 200 200 200
    }
}
shader_signal2~vf_luminous
{
reflect=0.357
ambient=0.73 0.73 0.73
shininess=17
specular=0.73 0.73 0.73
;cull=none
layer0
{
  map=signal2.tga
 }
 layer1
  {
   map=$trackenvmap
   }
}
shader_signal1~vf_reflect
{
reflect=0.357
ambient=0.73 0.73 0.73
shininess=17
specular=0.73 0.73 0.73
;cull=none
layer0
{
  map=signal1.tga
 }
 layer1
  {
   map=$trackenvmap
   }
}