;---------------------------------------------------
;==================== Wheel & Brake ================
;---------------------------------------------------

shader_txt_wheel
{
   layer0
  {
    map=txt_Wheel.tga
    shininess=10
    specular=0.2 0.2 0.2 1
  }
}


shader_txt_rim
{
  layer0
  {
    map=txt_rim.tga
  }
}

shader_txt_rim1
{
  layer0
  {
    map=txt_rim1.tga
  }
}

shader_txt_rim2
{
  layer0
  {
    map=txt_rim2.tga
  }
}

;-----------------------------------------------
;==================== Windows ==================
;-----------------------------------------------

shader_txt_glass 
{
cull=none
  layer0
  {
    ;depthwrite=0
    map=txt_glass.tga
    blendfunc=blend
  }
  layer1
  {
    ;depthwrite=0
    texenv=replace
    map=txt_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_txt_glass_in
{
cull=none
  layer0
  {
    ;depthwrite=0
    map=txt_glass.tga
    blendfunc=blend
  }
  layer1
  {
    ;depthwrite=0
    texenv=replace
    map=txt_fresnel2.tga
    texgen_s=sphere_map
    texgen_t=sphere_map
    blendfunc=one dst_alpha
  }
}
shader_txt_mirror
{
cull=none
layer0
{
    map=$mirror
    texscale_s=1
    texscale_r=1
    texscale_t=1
    emission=0.1 0.1 0.1 1
}
}
shader_PRIMREN
{
  layer0
  {
    map=PRIMREN.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=10
    specular=0.25 0.25 0.25
  }
  layer2
  {
    map=PRIMREN.tga
    blendfunc=one src_alpha
  }
}


------------- luci ---------------------
shader_headlights
{
  layer0
    {
      map=headlights.tga
      emission=1 1 1 1
      shininess=0
      specular=0 0 0 1
      blendfunc=blend
      texenv=replace
    }
}
shader_txt_halo
{
cull=none
depthwrite=1
layer0
{
    map=txt_halo.tga
    shininess=28
    specular= .02 .02 .02
    diffuse= .9 .9 .9
    ambient= .18 .18 .18
    blendfunc=src_color one
  }
}

shader_ENGINETOPRENAULTon
{
cull=none
depthwrite=1
layer0
{
    map=ENGINETOPRENAULTon.tga
    shininess=28
    specular= .02 .02 .02
    diffuse= .99 .99 .99
    ambient= .18 .18 .18
    blendfunc=src_color one
  }
}
shader_OBOREDon
{
cull=none
depthwrite=1
layer0
{
    map=OBOREDon.tga
    shininess=28
    specular= 9.02 9.02 9.02
    diffuse= 9.99 9.99 9.99
    ambient= 9.18 9.18 9.18
    blendfunc=src_color one
  }
}
shader_OCEANICRENAULTon
{
cull=none
depthwrite=1
layer0
{
    map=OCEANICRENAULTon.tga
    shininess=28
    specular= .02 .02 .02
    diffuse= .99 .99 .99
    ambient= .18 .18 .18
    blendfunc=src_color one
  }
}

---------- sterzo ------------

shader_OCEANICRENAULT
{
  layer0
  {
    map=OCEANICRENAULT.tga
  }
}

--- altro

shader_CARUNDERRENAULT
{
  layer0
  {
    map=CARUNDERRENAULT.tga
  }
}

shader_OCEANICBBODY64B
{
  layer0
  {
    map=OCEANICBBODY64B.tga
  }
}
shader_cintura
{
  layer0
    {
      map=interior3.tga
    blendfunc=blend
    alphafunc=gequal 150
    depthwrite=1
    }
}


