shader_body
{
  layer0
  {
    map=gradient.tga
    texgen_s=sphere_map
    texgen_t=sphere_map
    emission=1.0 1.0 1.0 1.0
  }
  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=bodyE36cpt.jpg
    shininess=75
    specular=0.13 0.13 0.13 0.16
    blendfunc=one src_alpha
  }
}
shader_body_nc
{
  layer0
  {
    map=bodyE36cpt.jpg
    blendfunc=blend
  }
}
;shader_incar
;{
;  layer0
;  {
;    map=incar.tga
;    blendfunc=blend
;    emission=.3 .3 .3 .3
;  }
;}
shader_windows
{
  layer0
  {
    map=windowsE36.tga
    blendfunc=blend
    emission=.5 .5 .5 .5
  }
  layer1
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=src_color one_minus_src_color
    emission=0. 0. 0. 0.
  }
}
;----------------------------------------------------------------------
;Lights:
shader_lights
{
  layer0
  {
    map=lights.tga
    emission=.1 .1 .1 .1
    mipmap=0
  }
  layer1
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=src_color one_minus_src_color
  }
}
shader_glow
{
  layer0
  {
    map=lights.tga
    blendfunc=blend
    emission=.7 .7 .7 .7
  }
}
shader_brake
{
  layer0
  {
    map=lights.tga
    blendfunc=blend
    emission=5. 5. 5. 5.
  }
}
;----------------------------------------------------------------------
;Wheels:
shader_wear
{
  layer0
  {
    map=wearM.jpg
  }
}
shader_tread
{
  layer0
  {
    map=treadM.jpg
  }
}
shader_rim
{
  layer0
  {
    map=wearM.jpg
    blendfunc=blend
  }
  layer1
  {
    map=$trackenvmap
    ;map=$tracksunmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=add
  }
}
shader_disc
{
  layer0
  {
    map=$trackenvmap
    ;map=$tracksunmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    ;blendfunc=zero zero
  }
  layer1
  {
    map=disc.tga
    blendfunc=add
  }
  layer2 
  { 
    ; this layer means that alpha controls gloss.
    map=disc.tga
    blendfunc=src_alpha one_minus_src_alpha
  }
}