; 2005 Ferrari F430 by Sam Jigga, based upon MrWhippy's BMW M3 Shader.

shader_BODY
{
	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=CAYMANS SKIN.tga
                mipmap=1
		blendfunc=one src_alpha
                depthwrite=0
	}
}

shader_WINDOW_REAR_DEFROST
{
	layer0
	{
		map=WDEFROST.tga
		blendfunc=blend
		depthwrite=0
		shininess=64
	}
	layer1
	{
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
		blendfunc=src_color one_minus_src_color
		;blendfunc=blend
		;blendfunc=filter
		depthwrite=0
                ambient=0 0 0 0
	}
}

shader_WINDOW_LEFT_REAR
{
	layer0
	{
		map=WINDOW.tga
		blendfunc=blend
		depthwrite=0
		shininess=64
	}
	layer1
	{
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
		blendfunc=src_color one_minus_src_color
		;blendfunc=blend
		;blendfunc=filter
		depthwrite=0
                ambient=0 0 0 0
	}
}

shader_RIGHT_HEADLIGHT_KIT00_GLASS
{
	layer0
	{
		map=CAYMANS HEADLIGHT GLASS.tga
		blendfunc=blend
		depthwrite=0
		shininess=64
	}
	layer1
	{
		map=$trackenvmap
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
		blendfunc=src_color one_minus_src_color
		;blendfunc=blend
		;blendfunc=filter
		depthwrite=0
                ambient=0 0 0 0
	}
}

;shader_f430windowint
;{
;	layer0
;	{
;		map=f430window.tga
;		blendfunc=blend
;		depthwrite=0
;		shininess=64
;	}
;}

shader_WINDOW_REAR_MASK
{
	layer0
	{
		map=WINDOW MASK.tga
	}
}

shader_LEFT_HEADLIGHT_KIT00_DULL_PLASTIC
{
	layer0
	{
		map=CAYMANS HEADLIGHT.tga
	}
}

shader_LEFT_BRAKELIGHT_KIT00_BULB
{
	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=CAYMANS BRAKELIGHT.tga
                mipmap=1
		blendfunc=one src_alpha
	}
}

shader_DOORLINE
{
	layer0
	{
		map=doorline.tga
		blendfunc=blend
    		depthwrite=0
	}
}

shader_BADGING
{
	layer0
	{
		map=CAYMANS BADGING.tga
		blendfunc=blend
    		depthwrite=0
	}
}


shader_BODY_PLAINNOTHING
{
	layer0
	{
		map=BOTTOM.tga
	}
}

shader_BODY_DULL_PLASTIC
{
	layer0
	{
		map=CAYMANS MISC.tga
	}
}

shader_BODY_MOLDING
{
	layer0
	{
		map=CAYMANS MISC.tga
	}
}

shader_RIM_KIT00_SILVER
{
	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.4 0.4 0.4
	}
	layer2
	{
		map=CAYMANS TIRE.tga
		blendfunc=one src_alpha
		shininess=128
		specular=0.3 0.3 0.3
	}
}

shader_TIRE_KIT00_TREAD
{
	layer0
	{
		map=TREAD.tga
	}
}

shader_LICENSE_PLATE
{
	layer0
	{
		map=LICENSE.tga
		blendfunc=blend
    		depthwrite=0
	}
}

shader_RIGHT_HEADLIGHT_KIT00_CHROME
{
	layer0
	{
		map=CAYMANS HEADLIGHT.tga
	}
}

shader_INTERIOR
{
	layer0
	{
		map=CAYMANS INTERIOR.tga
	}
}

shader_volan
{
	layer0
	{
		map=CAYMANS WHEEL.tga
	}
}

shader_AER
{
	layer0
	{
		map=AER.tga
	}
}

shader_RADIO
{
	layer0
	{
		map=RADIO.tga
	}
}

shader_cynewdash
{
	layer0
	{
		map=cynewdash.tga
		blendfunc=blend
    		depthwrite=0
	}
}

shader_door
{
	layer0
	{
		map=door.tga
	}
}


shader_BRAKE_STYLE01_ROTOR
{
	layer0
	{
		map=BRAKDISC.tga
		blendfunc=blend
    		depthwrite=0
	}
}

shader_BRAKE_KIT00_CALIPER
{
	layer0
	{
		map=CAYMANS MISC.tga
	}
}

shader_brakeson
{
layer0
{
map=CAYMANS BRAKELIGHTon.tga
;blendfunc=src_alpha one_plus_src_alpha
blendfunc=blend
ambient=0.2 0.2 0.2 0.2
specular=0 0 0 0
diffuse=0 0 0 0
emission=1 1 1 1
shininess=128
}
}

shader_mirrors
{
	layer0
	{
		map=csmirror.jpg
	}
}

shader_mirrorsint
{
	layer0
	{
		map=$mirror
   		texscale_s=1
  		texscale_r=1
  		texscale_t=1
   		emission=.6 .6 .6 .6
	}
}



shader_shadow
{
cull=none
layer0
{
map=shadow.tga
blendfunc=one_src_alpha
;blendfunc=src_color one_minus_src_alpha
depthwrite=0
}
}