111 lines
2.8 KiB
Plaintext
111 lines
2.8 KiB
Plaintext
"VertexLitGeneric"
|
|
{
|
|
"$basetexture" ""
|
|
"$bumpmap" ""
|
|
|
|
// Wearables usually use this lightwarp: "models/player/pyro/pyro_lightwarp"
|
|
// Weapons usually use this lightwarp: "models/lightwarps/weapon_lightwarp"
|
|
// Weapons are the more custom case, so we'll default to a good wearable lightwarp
|
|
"$lightwarptexture" "models/player/pyro/pyro_lightwarp"
|
|
|
|
"$phongexponenttexture" ""
|
|
"$phong" "1"
|
|
"$phongexponent" "25"
|
|
"$phongboost" "0.1"
|
|
"$phongfresnelranges" "[.25 .5 1]"
|
|
"$basemapalphaphongmask" "0"
|
|
|
|
"$rimlight" "1" // To enable rim lighting (requires phong)
|
|
"$rimlightexponent" "4" // Exponent for phong component of rim
|
|
"$rimlightboost" "2" // Boost for ambient cube component of rim lighting
|
|
"$rimmask" "0"
|
|
"$halflambert" "0"
|
|
|
|
// Paintable material parameters
|
|
"$blendtintbybasealpha" "1"
|
|
"$blendtintcoloroverbase" "0" // between 0-1 determines how much blended by tinting vs. replacing the color
|
|
"$colortint_base" "{ 255 255 255 }" // put the RGB value of whats being colored when no paint is present, if $blendtintcoloroverbase is 0 then put [255 255 255] here.
|
|
"$color2" "{ 255 255 255 }" // same as colortint_base
|
|
"$colortint_tmp" "[0 0 0]"
|
|
|
|
// By default the normal map alpha channel is used as phong mask
|
|
"$bumpmapalphaphongmask" "1"
|
|
|
|
// Translucent
|
|
"$additive" "0"
|
|
"$translucent" "0"
|
|
"$alphatest" "0"
|
|
|
|
// Cube map
|
|
"$envmap" ""
|
|
"$basealphaenvmapmask" "0"
|
|
"$normalmapalphaenvmapmask" "0"
|
|
"$envmaptint" "[1 1 1]"
|
|
|
|
// Variables for the cloak effect
|
|
"$cloakPassEnabled" "1"
|
|
|
|
// Variables for the burning effect
|
|
"$detail" "effects/tiledfire/fireLayeredSlowTiled512"
|
|
"$detailscale" "5"
|
|
"$detailblendfactor" "0"
|
|
"$detailblendmode" "6"
|
|
|
|
// Variables for the jarate effect
|
|
"$yellow" "0"
|
|
|
|
">=DX90"
|
|
{
|
|
"$selfillum" "0"
|
|
}
|
|
"$selfillumtint" "[1 1 1]"
|
|
"$selfillummask" ""
|
|
|
|
// The order of the proxies is important!
|
|
"Proxies"
|
|
{
|
|
// Proxies for the cloak effect
|
|
"invis"
|
|
{
|
|
}
|
|
// Proxies for the burning effect
|
|
"AnimatedTexture"
|
|
{
|
|
"animatedtexturevar" "$detail"
|
|
"animatedtextureframenumvar" "$detailframe"
|
|
"animatedtextureframerate" 30
|
|
}
|
|
"BurnLevel"
|
|
{
|
|
"resultVar" "$detailblendfactor"
|
|
}
|
|
// Proxies for paintable items
|
|
"ItemTintColor"
|
|
{
|
|
"resultVar" "$colortint_tmp"
|
|
}
|
|
"SelectFirstIfNonZero"
|
|
{
|
|
"srcVar1" "$colortint_tmp"
|
|
"srcVar2" "$colortint_base"
|
|
"resultVar" "$color2"
|
|
}
|
|
// Proxies for the jarate effect
|
|
"YellowLevel"
|
|
{
|
|
"resultVar" "$yellow"
|
|
}
|
|
// Equals or Multiply will get removed in code base on paintable flag
|
|
"Equals"
|
|
{
|
|
"srcVar1" "$yellow"
|
|
"resultVar" "$color2"
|
|
}
|
|
"Multiply"
|
|
{
|
|
"srcVar1" "$color2"
|
|
"srcVar2" "$yellow"
|
|
"resultVar" "$color2"
|
|
}
|
|
}
|
|
} |