"VertexlitGeneric"
{
	"$baseTexture" "models/unloze/crown/crown"
	"$bumpmap" "models/unloze/crown/crown_bump"
//	"$normalalphaenvmapmask" 1
//	"$env_map" "env_cubemap"
//	"$envmaptint" "[.5 .5 .5]" 
	"$detail" "models/unloze/crown/crown_detail"	
	"$detailscale" "5"
	"$detailblendfactor" .01
	"$detailblendmode" 6
	"$yellow" "0"

	"$phong" "1"
	"$phongexponent" "50"
	"$phongboost" "8"
	"$lightwarptexture" "models/unloze/crown/crown_lightwarp"
	"$phongfresnelranges"	"[.25 .5 1]"
	//"$basemapalphaphongmask" "1"

 	"$blendtintbybasealpha" "1" 
 	"$blendtintcoloroverbase" "0"  

	"$colortint_base" "{127 61 61}"
	"$colortint_tmp" "[0 0 0]" 

	// Rim lighting parameters
	"$rimlight" "1"												// To enable rim lighting (requires phong)
	"$rimlightexponent" "4"										// Exponent for phong component of rim lighting	
	"$rimlightboost" "2"										// Boost for ambient cube component of rim lighting

	// Cloaking
	"$cloakPassEnabled" "1"

	"Proxies"
	{
		"invis"
		{
		}
		"AnimatedTexture"
		{
			"animatedtexturevar" "$detail"
			"animatedtextureframenumvar" "$detailframe"
			"animatedtextureframerate" 30
		}
		"BurnLevel"
		{
			"resultVar" "$detailblendfactor"
		}
		"ItemTintColor"
		{
			"resultVar" "$colortint_tmp"
		}
		"SelectFirstIfNonZero"
		{
			"srcVar1"	"$colortint_tmp"
			"srcVar2"	"$colortint_base"
			"resultVar" "$color2"
		}
		"YellowLevel"
		{
			"resultVar" "$yellow"
		}
		"Multiply"
		{
			"srcVar1" "$color2"
			"srcVar2" "$yellow"
			"resultVar" "$color2"
		}
	}
}