Hi, I found a bunch of material functions in a vmt that are not listed on the developer wiki or google.

The Functions

[release]$texture2 “path”

$gnoise <bool>

$playerdistance <bool/int>

$alpharesult <bool/int>

$smallamount <int>

$alpharesultmin <int>

$alpharesultmax <int>

$hundred <int/100>

$playerdistance2 <bool>

$ten <int>

$frameminusten <bool>

[/release]

None of these shader parameters are listed on the wiki. does anyone know what these do? I think most of them are specific to the “Unlittwotexture” shader type.

Origional VMT: (materials/effects/CombineShield/combineshieldwall.vmt)

```
"Unlittwotexture"
{
"$basetexture" "Effects/Combineshield/comshieldwall"
// "$texture2" "Effects/com_shield002b"
"$texture2" "Effects/Combineshield/comshieldwall"
"$translucent" "1"
"$envmap" "env_cubemap"
"$envmaptint" "[1 1 1]"
"$gnoise" "1"
"$playerdistance" "0"
"$additive" 1
"$alpharesult" "1"
"$smallamount" ".1"
"$alpharesultmin" "1"
"$alpharesultmax" "1"
"$nodecal" 1
"$hundred" "100"
"$largeamount" "1"
"$playerdistance2" "1"
"$ten" "24"
"$frameminusten" "1"
"Proxies"
{
"PlayerProximity"
{
"resultVar" "$playerdistance2"
"scale" .2
}
"Subtract"
{
"srcVar1" "$playerdistance2"
"srcVar2" "$ten"
"resultVar" "$frameminusten"
}
"Clamp"
{
"srcVar1" "$frameminusten"
"min" "0"
"max" "30"
"resultVar" "$frame2"
}
"Clamp"
{
"srcVar1" "$frameminusten"
"min" "0"
"max" "30"
"resultVar" "$frame"
}
"PlayerProximity"
{
"resultVar" "$playerdistance"
"scale" 0.0009
}
"GaussianNoise"
{
"minVal" .8
"maxVal" 1
"mean" .7
"halfwidth" .3
"resultVar" "$gnoise"
}
"Subtract"
{
"srcVar1" "$gnoise"
"srcVar2" "$playerdistance"
"resultVar" "$alpharesultmin"
}
"Multiply"
{
"srcVar1" "$hundred"
"srcVar2" "$playerdistance"
"resultVar" "$largeamount"
}
"Equals"
{
"srcVar1" "$playerdistance"
"resultVar" "$envmaptint[1]"
}
"Add"
{
"srcVar1" "$alpharesultmin"
"srcVar2" "$smallamount"
"resultVar" "$alpharesultmax"
}
"Sine"
{
"sineperiod" 1.08
"sinemin" "$alpharesultmin"
"sinemax" "$alpharesultmax"
"resultVar" "$alpha"
}
"TextureScroll"
{
"texturescrollvar" "$texture2transform"
"texturescrollrate" .1
"texturescrollangle" -45
}
}
}
```

I also don’t get most of these material proxies’ functions. Anyone know these parameter’s functions