
;-----------------------------------------------
;===================Body Paint==================
;-----------------------------------------------

shader_txt_body
{
  layer0
  {
    map=txt_fresnel.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=24
    specular=0.75 0.75 0.75
  }
  layer2
  {
    map=txt_body.tga
    blendfunc=one src_alpha
  }
}

shader_txt_body2
{
  layer0
  {
    map=txt_fresnel.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=24
    specular=0.75 0.75 0.75
  }
  layer2
  {
    map=txt_body2.tga
    blendfunc=one src_alpha
  }
}

shader_txt_body3
{
  layer0
  {
    map=txt_fresnel.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=24
    specular=0.75 0.75 0.75
  }
  layer2
  {
    map=txt_body3.tga
    blendfunc=one src_alpha
  }
}

;---------------------------------------------------
;================ White Chrome =====================
;---------------------------------------------------

shader_txt_chrome
{
 layer0
 {
  map=txt_fresnel.tga
  texgen_s=sphere_map
  texgen_t=sphere_map
  emission=1 1 1 1
  ;1 1 1 1
  mipmap=1
 }
 layer1
 {
  map=$trackenvmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  emission=0.59 0.56 0.60 
  blendfunc=filter
  shininess=24
  specular=0.49 0.47 0.50 1.0
  ;0.75 0.75 0.75
  mipmap=0
 }
 layer2
 {
  map=$tracksunmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=one dst_alpha ;Metalized
  ;blendfunc=dst_color one ;Non-Metalized
  shininess=24
  specular=0.49 0.47 0.50 1.0
  mipmap=0
  }
 layer3
 {
  map=txt_chrome.tga
  blendfunc=one src_alpha
  shininess=24
  specular=0.49 0.47 0.50 1.0
  mipmap=1
 }
}

;---------------------------------------------------
;=================== Plastic =======================
;---------------------------------------------------


shader_txt_plastic
{
cull=none
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    blendfunc=one zero
  }
  layer1
  {
    map=txt_plastic.tga
    blendfunc=one zero
    shininess=20
    specular=0.25 0.25 0.25
  }
}



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


;----------------------------------------------------------
;================== Lamps & Glass =========================
;----------------------------------------------------------

shader_txt_lights
{
layer0
  {
    map=txt_lights.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

shader_txt_lights2
{
  layer0
  {
    map=txt_lights2.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

shader_txt_blaulicht
{
  layer0
  {
    ;depthwrite=0
    map=txt_blaulicht.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 
  {    
    ;this layer means that alpha controls gloss.
    map=txt_blaulicht.tga
    shininess=24
    specular=0.1 0.1 0.1 1
    blendfunc=src_alpha one_minus_src_alpha
}
}



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



;---------------------------------------------------
;===================== Fiatlogos ===================
;---------------------------------------------------


shader_txt_logos
{
  layer0
  {
    map=txt_logos.tga
    blendfunc=blend

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

;---------------------------------------------------
;==================== Other Parts ==================
;---------------------------------------------------


shader_txt_tankdop
{
  layer0
  {
    map=txt_tankdop.tga
    blendfunc=blend

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}


shader_txt_exhaust
{
  layer0
  {
    map=txt_exhaust.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

;---------------------------------------------------
;===================== Interior ====================
;---------------------------------------------------

shader_txt_floor
{
  layer0
  {
    map=txt_floor.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

shader_txt_seats
{
   layer0
  {
    map=txt_seats.tga
  }
}

shader_txt_dashboard
{
  layer0
  {
   map=$trackenvmap
   texgen_s=reflection_map
   texgen_t=reflection_map
   texgen_r=reflection_map
  }
  layer1
  {
    map=txt_dashboard.tga
    blendfunc=blend
  }
}



shader_txt_6shooter
{
   layer0
  {
    map=txt_6shooter.tga
  }
}



shader_txt_dashplastic
{
  layer0
  {
    map=txt_dashplastic.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

shader_txt_fabric
{
  layer0
  {
    map=txt_fabric.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}



shader_txt_dials
{
   layer0
  {
    map=txt_dials.tga
  }
}

shader_txt_tulip
{
cull=none
   layer0
  {
    map=txt_tulip.tga
  }
}

shader_txt_marlboro
{
   layer0
  {
    map=txt_marlboro.tga
  }
}

shader_txt_material
{
   layer0
  {
    map=txt_material.tga
  }
}


shader_txt_body_in
{
 layer0
 {
  map=txt_fresnel.tga
  texgen_s=sphere_map
  texgen_t=sphere_map
  emission=1 1 1 1
  mipmap=0
 }
 layer1
 {
  map=$trackenvmap
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  emission=0.5 0.5 0.5
  blendfunc=filter
  shininess=24
  specular=0.75 0.75 0.75
  mipmap=0
 }
 layer2
 {
  map=txt_body_in.tga
  blendfunc=one src_alpha
  mipmap=0
 }
 layer3
 {
  map=txt_shine.tga
  texgen_s=reflection_map
  texgen_t=reflection_map
  texgen_r=reflection_map
  blendfunc=dst_color one 
  shininess=24
  specular=0.7 0.7 0.7
 }
}



;---------------------------------------------------
;================== Steering Wheel =================
;---------------------------------------------------



shader_txt_steering
{
   layer0
  {
    map=txt_steering.tga
  }
}



shader_txt_steering2
{
  layer0
{
    map=$trackenvmap
    ;map=$tracksunmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    ;blendfunc=zero zero
  }
  layer1
  {
    map=txt_steering2.tga
    blendfunc=src_color one_minus_src_color
    specular=0.1 0.1 0.1 1
    shininess=24
    mipmap=0
    ;add
  }
  layer2  
  {    
    ;this layer means that alpha controls gloss.
    map=txt_steering2.tga
    shininess=24
    specular=0.1 0.1 0.1 1
    blendfunc=src_alpha one_minus_src_alpha
}
}


;---------------------------------------------------
;===================== Drivers =====================
;---------------------------------------------------

shader_txt_maledriver
{
  layer0
  {
    map=txt_maledriver.tga
  }
}

shader_txt_glasses
{
  layer0
  {
    map=txt_fresnel.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=24
    specular=0.75 0.75 0.75
  }
  layer2
  {
    map=txt_glasses.tga
    blendfunc=one src_alpha
  }
}

shader_txt_hat
{
cull=none
   layer0
  {
    map=txt_hat.tga
  }
}


shader_txt_sorina
{
  layer0
  {
    map=txt_sorina.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}

;---------------------------------------------------
;===================== Colors ======================
;---------------------------------------------------


shader_txt_white
{
  layer0
  {
    map=txt_white.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}


shader_txt_black
{
  layer0
{
    map=$trackenvmap
    ;map=$tracksunmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
    ;blendfunc=zero zero
  }
  layer1
  {
    map=txt_black.tga
    blendfunc=src_color one_minus_src_color
    specular=0.1 0.1 0.1 1
    shininess=24
    mipmap=0
    ;add
  }
  layer2  
  {    
    ;this layer means that alpha controls gloss.
    map=txt_black.tga
    shininess=24
    specular=0.1 0.1 0.1 1
    blendfunc=src_alpha one_minus_src_alpha
}
}

;---------------------------------------------------
;=================== License plates ================
;---------------------------------------------------


shader_txt_licenseplates
{
  layer0
  {
    map=txt_licenseplates.tga

    shininess=0
    specular=0 0 0
    ambient=0 0 0
    diffuse=0 0 0
    emission=0 0 0 0
  }
}


;---------------------------------------------------
;====================== Mirror =====================
;---------------------------------------------------




shader_panda04
{
 layer0
 {
  map=fresnel.tga
  texgen_s=sphere_map
  texgen_t=sphere_map
  emission=1 1 1 1
  mipmap=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=panda04.tga
  blendfunc=one src_alpha
  mipmap=0
 }
}
shader_hlavni
{
 layer0
 {
  map=hlavni.tga
 }
}
shader_detaily
{
  layer0
  {
    map=detaily.tga
  }
}

shader_windows
{
	cull=back
 	layer0
	{
    		map=windows.tga
    		shininess=0
    		specular=0 0 0 1
    		emission=0.13 0.13 0.13 1
    		depthwrite=0
    		blendfunc=blend
  	}
  	layer1
  	{
    		map=$trackenvmap
    		texgen_s=reflection_map
    		texgen_t=reflection_map
    		texgen_r=reflection_map
    		blendfunc=src_color one_minus_src_color
  	}
}
shader_1111
{
 layer0
 {
  map=1111.tga
 }
}
shader_tyre_sport
{
 layer0
 {
  map=tyre_sport.tga
 }
}
shader_konsola
{
 layer0
 {
  map=konsola.tga
 }
}
shader_fela
{
  layer0
    {
      map=$trackenvmap
      texgen_s=reflection_map
      texgen_t=reflection_map
      texgen_r=reflection_map
      shininess=32
      specular=1 1 1 1
    }
  layer1
    {
      map=fela.tga
      blendfunc=one src_alpha
    }
}
shader_Lights
{
  sort_offset=1
  layer0
    {
       map=Lights.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights1
{
  sort_offset=1
  layer0
    {
       map=Lights1.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights2
{
  sort_offset=1
  layer0
    {
       map=Lights2.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights3
{
  sort_offset=1
  layer0
    {
       map=Lights3.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights4
{
  sort_offset=1
  layer0
    {
       map=Lights4.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights7
{
  sort_offset=1
  layer0
    {
       map=Lights7.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}


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

shader_Brakes
{
  sort_offset=1
  layer0
    {
       map=Brakes.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}



;----------- addons


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

shader_car00
{
  sort_offset=1
  layer0
    {
       map=car00.tga
       
    }
}

shader_car00
{
  layer0
    {
       map=car00.tga
       
    }
}

shader_Carshell
{
  layer0
    {
       map=jagbodytex.tga
       
    }
}


shader_interior
{
  layer0
    {
       map=jaginterior.tga
       
    }
}


shader_red
{
  layer0
    {
       map=red.tga
       
    }
}


shader_zex
{
  layer0
    {
       map=zex.tga
       
    }
}


shader_69_baer_body
{
  layer0
    {
       map=69_baer_body.tga
       
    }
}


shader_jagwirewheel
{
  layer0
    {
       map=jagwirerim.tga
       
    }
}








;--------------------- luci

shader_headlights
{
  layer0
    {
      map=headlights.tga
      emission=1 1 1 1
      shininess=4
      specular=0 0 0 1
      blendfunc=blend
      texenv=replace
    }
}
shader_Carshellon
{
  sort_offset=1
  layer0
  {
    map=jagbodytexon.tga
    blendfunc=blend
    emission=4 4 4 4 
    texenv=replace
  }
}
shader_interioron
{
  sort_offset=1
  layer0
  {
    map=jaginterioron.tga
    blendfunc=blend
    emission=4 4 4 4 
    texenv=replace
  }
}
shader_car00on
{
  sort_offset=1
  layer0
  {
    map=car00on.tga
    blendfunc=blend
    emission=4 4 4 4 
    texenv=replace
  }
}
