shader_nsx_01
{
 	layer0
 	{
 		map=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=body.tga
  		blendfunc=one src_alpha
 	}
}

shader_diff
{
 	layer0
 	{
  		map=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=diff.tga
  		blendfunc=one src_alpha
 	}
}

shader_dlight
{
 	layer0
   	{
      		map=$trackenvmap
      		texgen_s=reflection_map
      		texgen_t=reflection_map
      		texgen_r=reflection_map
      		shininess=32
      		specular=1 1 1 1
    	}
  	layer1
 	{
  		map=nlights.tga
  		blendfunc=one src_alpha
 	}
}

shader_lighv
{
 	layer0
   	{
      		map=$trackenvmap
      		texgen_s=reflection_map
      		texgen_t=reflection_map
      		texgen_r=reflection_map
      		shininess=32
      		specular=1 1 1 1
    	}
  	layer1
 	{
  		map=lightv.tga
  		blendfunc=one src_alpha
 	}
}

shader_nsxparts
{
 	cull=none
 	layer0
 	{
  		map=body.tga
  		blendfunc=blend
 	}
}



shader_plastic
{
 	layer0
 	{
  		map=body.tga
  		shininess=30
  		specular=0.76 0.75 0.74
 	}
}

shader_license0
{
 	layer0
 	{
 		map=license0.tga
  		shininess=30
  		specular=0.76 0.75 0.74
 	}
}

shader_carunder
{
 	layer0
 	{
  		map=body.tga
  		shininess=30
  		specular=0.76 0.75 0.74
 	}
}

shader_steer
{
 layer0
 {
  map=steer.bmp
 }
}
shader_mirrorr
{
 	layer0
 	{
		map=$mirror
		texscale_s=1
		texscale_r=1
		texscale_t=1
 	}
}
shader_mirrorl
{
 	layer0
 	{
		map=$mirror
		texscale_s=1
		texscale_r=1
		texscale_t=1
 	}
}
shader_windows
{
 	layer0
 	{
  		map=windows.tga
  		shininess=128
  		blendfunc=src_color one_minus_src_alpha 
 	}
 	layer1
 	{
  		map=$trackenvmap
  		texgen_s=reflection_map
  		texgen_t=reflection_map
  		texgen_r=reflection_map
  		blendfunc=src_alpha one_minus_src_color
 	}
 	layer2
 	{
  		map=windows.tga
  		shininess=40
  		specular=1 1 1
  		depthwrite=1 
  		blendfunc=src_color one_minus_src_alpha 
 	}
}

shader_glass
{
 	layer0
 	{
  		map=glass.tga
  		depthwrite=0 
  		shininess=128
  		blendfunc=src_color one_minus_src_alpha
 	}
 	layer1
 	{
  		map=$trackenvmap
  		depthwrite=0 
  		texgen_s=reflection_map
  		texgen_t=reflection_map
  		texgen_r=reflection_map
  		blendfunc=src_alpha one_minus_src_color
 	}
 	layer2
 	{
  		map=glass.tga
  		shininess=40
  		specular=1 1 1
  		depthwrite=0 
  		blendfunc=src_color one_minus_src_alpha
 	}
}

shader_windows2
{
 	layer0
 	{
  		map=windows2.tga
  		blendfunc=blend
 	}
}

shader_interior
{
 	layer0
   	{
      		map=$trackenvmap
      		texgen_s=reflection_map
      		texgen_t=reflection_map
      		texgen_r=reflection_map
      		shininess=32
      		specular=1 1 1 1
    	}
  	layer1
 	{
  		map=interior.tga
  		alphafunc=gequal 128
		blendfunc=one zero
 	}
}

shader_brake
{
 	layer0
 	{
  		map=brake.tga
  		texenv=replace
  		depthwrite=0
  		blendfunc=blend
 	}
}

shader_driver
{
 	layer0
   	{
      		map=$trackenvmap
      		texgen_s=reflection_map
      		texgen_t=reflection_map
      		texgen_r=reflection_map
      		shininess=32
      		specular=1 1 1 1
    	}
  	layer1
 	{
  		map=driver.tga
  		alphafunc=gequal 128
		blendfunc=one zero
 	}
}

shader_headlights
{
 	layer0
 	{
  		map=$trackenvmap
  		texgen_s=reflection_map
  		texgen_t=reflection_map
  		texgen_r=reflection_map
      		shininess=32
      		specular=1 1 1 1
 	}
 	layer1
 	{
  		map=b.tga
  		blendfunc=one src_alpha
 	}
}

shader_na1rim
{
  	layer0
   	{
      		map=$trackenvmap
      		texgen_s=reflection_map
      		texgen_t=reflection_map
      		texgen_r=reflection_map
      		shininess=32
      		specular=1 1 1 1
    	}
  	layer1
  	{
    		map=na1rim.tga
    		blendfunc=blend
  	}
}
shader_na1rim1
{
  	layer0
  	{
    		map=na1rim1.tga
    		blendfunc=blend
  	}
	  
}
shader_na1rim2
{
   	layer0
  	{
    		map=na1rim2.tga
    		blendfunc=blend
  	} 	
	
}
shader_na1rim3
{
  	layer0
  	{
    		map=na1rim3.tga
    		blendfunc=blend
  	}
}

shader_wheel
{
  	layer0
  	{
    		map=wheel.tga
		shininess=10
		specular=0.1 0.1 0.15 1
  	}
}
shader_wheel0
{
  	layer0
  	{
    		map=wheel0.tga
		shininess=10
		specular=0.1 0.1 0.15 1
  	}
}

shader_airduct
{
 	layer0
 	{
  		map=airduct.tga
  		alphafunc=gequal 128
 	}
}





;shader_calipers
{
 	cull=none
 	layer0
 	{
  		map=body.tga
 	}
}

;shader_lighv
{
 	layer0
 	{
  		map=lightv.tga
  		blendfunc=add
  		depthwrite=0
  		emission=1 1 1 1
 	}
}