; Dodge Charger R/T '70 440 FNF Blown 900hp Pure Muscle
; car shaders
; ------------------------------------------------------------------------------------
shader_Windows
{
  layer0
  {
    ;depthwrite=0
    map=Windows.tga
    blendfunc=blend
  }
  layer1
  {
    ;depthwrite=0
    texenv=replace
    map=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_american
{
	layer0
	{
		map=fresnel.tga
		texgen_s=sphere_map
		texgen_t=sphere_map
		emission=1. 1. 1. 1.
	}
	layer1
	{
		map=chrome.bmp
		texgen_s=reflection_map
		texgen_t=reflection_map
		texgen_r=reflection_map
		shininess=10
		specular=0.75 0.75 0.75
		blendfunc=filter
	}
	layer2
	{
		map=american.tga
		blendfunc=one src_alpha
	}
}
; ------------------------------------------------------------------------------------
shader_Mirror
{
  layer0
    {
       map=$mirror
       texscale_s=1
       texscale_r=1
       texscale_t=1
       emission=0.3 0.3 0.3 1
    }
}
; ------------------------------------------------------------------------------------
shader_Car00
{
	layer0
	{
		map=gradient.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
		shininess=10
		specular=0.75 0.75 0.75
		blendfunc=filter
	}
	layer2
	{
		map=Car00.tga
		blendfunc=one src_alpha
	}
}
shader_body
{
	layer0
	{
		map=gradient.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
		shininess=10
		specular=0.75 0.75 0.75
		blendfunc=filter
	}
	layer2
	{
		map=body.tga
		blendfunc=one src_alpha
	}
}
shader_baer
{
	layer0
	{
		map=gradient.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
                mipmap=1
	}
	layer2
	{
		map=baer.tga
		blendfunc=one src_alpha
                mipmap=1
	}
}
shader_baer1
{
	layer0
	{
		map=gradient.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
                mipmap=1
	}
	layer2
	{
		map=baer1.tga
		blendfunc=one src_alpha
                mipmap=1
	}
}
shader_adesivo
{
	layer0
	{
		map=adesivo.tga
		blendfunc=blend
    		depthwrite=0
	}
}
; ------------------------------------------------------------------------------------
shader_Brakelights
{
  layer0
    {
        map=Car00.tga
        shininess=20
        specular= .3 .3 .3
        diffuse= .0 .0 .0
        ambient= .0 .0 .0
        emission= 2 1 1
    }
}
; ------------------------------------------------------------------------------------
shader_Int00
{
  layer0
    {
        map=Int00.tga
    }
}
shader_tire
{
  layer0
  {
    map=tire.tga
  }
}
shader_brake_pad
{
  layer0
  {
    map=brake_pad.tga
  }
}
shader_boostp
{
  layer0
  {
    map=boostp.tga
  }
}
shader_oilp
{
  layer0
  {
    map=oilp.tga
  }
}
shader_fuelp
{
  layer0
  {
    map=fuelp.tga
  }
}
shader_tread
{
  layer0
  {
    map=tread.tga
  }
}
shader_cinza2
{
  layer0
  {
    map=cinza2.tga
  }
}
shader_car01
{
  layer0
  {
    map=car01.tga
  }
}
shader_plate
{
  layer0
  {
    map=plate.tga
  }
}
shader_lanternas
{
  layer0
  {
    map=lanternas.tga
  }
}



shader_metal
{
  layer0
  {
    map=$trackenvmap
    texgen_s=reflection_map
    texgen_t=reflection_map
    texgen_r=reflection_map
      shininess=42
      specular=1 1 1 1
  }
  layer1
  {
    map=chrome.tga
    blendfunc=one src_alpha
  shininess=35
  specular=0.76 0.75 0.74
  }
}
; ------------------------------------------------------------------------------------
shader_Female
{
  layer0
    {
        map=Female.tga
    }
}
; ------------------------------------------------------------------------------------
shader_reflectors
{
  cull=back
  layer0
    {
        map=magrim00.tga
        mipmap=0
        shininess=30
        specular= .93 .93 .93
        diffuse= .95 .95 .95
        ambient= .05 .05 .05
        emission= .17 .17 .17
    }
  layer1
    {
        map=$trackenvmap
        ;texgen_s=normal_map
        ;texgen_t=normal_map
        ;texgen_r=normal_map
        texgen_s=reflection_map
        texgen_t=reflection_map
        texgen_r=reflection_map
        blendfunc=src_color one_minus_dst_alpha
    }
}
; ------------------------------------------------------------------------------------
shader_sidewall
{
  cull=back
  layer0
    {
        map=magrim00.tga
    }
}
; ------------------------------------------------------------------------------------
shader_wheel
{
  cull=back
  layer0
    {
        map=magrim00.tga
        mipmap=0
        shininess=30
        specular= .93 .93 .93
        diffuse= .15 .15 .15
        ambient= .05 .05 .05
        emission= .07 .07 .07
    }
  layer1
    {
        map=$trackenvmap
        ;texgen_s=normal_map
        ;texgen_t=normal_map
        ;texgen_r=normal_map
        texgen_s=reflection_map
        texgen_t=reflection_map
        texgen_r=reflection_map
        blendfunc=src_color one_minus_dst_alpha
    }
}
; ------------------------------------------------------------------------------------
shader_Lights
{
  sort_offset=1
  layer0
    {
       map=Lights.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
    }
}
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_Lights5
{
  sort_offset=1
  layer0
    {
       map=Lights5.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
shader_Lights6
{
  sort_offset=1
  layer0
    {
       map=Lights6.tga
       blendfunc=add
       texenv=replace
       emission=1 1 1 1
    }
}
