"VertexLitGeneric"
{
	
	"$baseTexture"			"models\hev_props\fragile\cr8-f\cr8-f"
	"$bumpmap"			"models\hev_props\fragile\cr8-f\cr8-f_normal"
	"$surfaceprop"			"chainlink"
	"$alphatest"			"1"
	"$nocull"				"1"
	"$reflectivity"			"[0.1 0.1 0.1]"
	"$envmap"			"env_cubemap"
        	"$envmaptint"			"{15 15 15}"
	"$envmapsaturation"		"1" 
	"$envmapcontrast"			"1"
        	"$normalmapalphaenvmapmask" 	"1" 
	//"$selfillum"			"1"
	//"$selfillumtint"			"{255 255 255}"
	"$phong"				"1"
	"$phongboost"			"15"
	"$phongalbedotint"			"1"
	"$phongfresnelranges"		"[0.05 0.5 1.0]"
	"$phongexponent"			"32"
	"$rimlight"			"1"	// To enable rim lighting (requires phong)
	"$rimlightexponent"			"0.5"	// Exponent for phong component of rim lighting 
	"$rimlightboost"			"0.5"

	"$detail" 				"models\hev_props\light"
	"$detailscale"			"1"
	"$detailblendfactor"			"1"
	"$detailblendmode"			"0"

	"$noise_alpha" 0.0

	"$opaque_distance" 192.0
	"$fade_distance" 7680.0
	"$fade_min" 0.1
	"$fade_scale" 0.9  // 1 - fade_min

	"$tmp1" 0.0
	"$tmp2" 0.0
	"$tmp3" 0.0
	"$tmp4" 0.0
	"$tmp5" 0.0

	"$player_distance" 0.0
	"$near_alpha" 0.0
	"$far_alpha" 0.0
	"$distance_alpha" 0.0
	"$final_distance_alpha" 0.0

	"$jumpchance" 0.0
	"$jumpchancethreshold" 0.95
	"$nojump" 0.0
	"$jumpdistance" 0.0
	"$translate1" "[0.0 0.0]"
	"$translate2" "[0.0 0.0]"
	"$scale2" "[3 3]"

    "Proxies"
    {
        "UniformNoise"
        {
            "minVal" 0.50
            "maxVal" 0.65
            "resultVar" "$noise_alpha"
        }

        "PlayerProximity"
        {
            "scale" 1.0
            "resultVar" "$player_distance" 
        }
        "Divide"
        {
            "srcVar1" "$player_distance"
            "srcVar2" "$opaque_distance"
            "resultVar" "$tmp1"
        }
        "Clamp"
        {
            "min" 0.0
            "max" 1.0
            "srcVar1" "$tmp1"
            "resultVar" "$near_alpha"
        }

        "Subtract"
        {
            "srcVar1" "$fade_distance"
            "srcVar2" "$player_distance"
            "resultVar" "$tmp2"
        }
        "Subtract"
        {
            "srcVar1" "$fade_distance"
            "srcVar2" "$opaque_distance"
            "resultVar" "$tmp3"
        }
        "Divide"
        {
            "srcVar1" "$tmp2"
            "srcVar2" "$tmp3"
            "resultVar" "$tmp4"
        }
        "Clamp"
        {
            "min" 0.0
            "max" 1.0
            "srcVar1" "$tmp4"
            "resultVar" "$far_alpha"
        }
        
        "Multiply"
        {
            "srcVar1" "$near_alpha"
            "srcVar2" "$far_alpha"
            "resultVar" "$distance_alpha"
        }

        "Multiply"
        {
            "srcVar1" "$distance_alpha"
            "srcVar2" "$fade_scale"
            "resultVar" "$tmp5"
        }
        "Add"
        {
            "srcVar1" "$tmp5"
            "srcVar2" "$fade_min"
            "resultVar" "$final_distance_alpha"
        }        
        
        "Multiply"
        {
            "srcVar1" "$noise_alpha"
            "srcVar2" "$final_distance_alpha"
            "resultVar" "$alpha"
        }
                

        "GaussianNoise"
        {
            "mean" 0.5
            "halfWidth" 0.2
            "minVal" 0.0
            "maxVal" 1.0
            "resultVar" "$jumpchance"            
        }

        "GaussianNoise"
        {
            "mean" 0
            "halfWidth" 0.05
            "minVal" -0.1
            "maxVal" 0.1
            "resultVar" "$jumpdistance"            
        }
        "LessOrEqual"
        {
            "srcVar1" "$jumpchance"
            "srcVar2" "$jumpchancethreshold"
            "lessEqualVar" "$nojump"
            "greaterVar" "$jumpdistance"
            "resultVar" "$translate1[1]"
        }
        "TextureTransform"
        {
            "translateVar" "$translate1"
            "resultVar" "$basetexturetransform"
        }


    }	

}
//Edited by The New Guy
//Resources from gtamike_TSGK
//www.gamebanana.com/members/215600