Talk:List of material proxies

From Valve Developer Community
Revision as of 07:44, 16 September 2010 by Fewes (talk | contribs)
Jump to navigation Jump to search

How to do a water who change color fog, with use a button in game? Thx. --Anarkia777 18:10, 27 July 2010 (UTC)

Use a material_modify_control. --TomEdwards 20:13, 27 July 2010 (UTC)

Does the LampBeam proxy really exist? I get: "Error: Material "effects/ray02" : proxy "LampBeam" not found!" when trying to use it. A solution if you're looking to hide flat geometry light effects is making the material fade when the player gets near:

//Variables

"$param" 0.3

"$playerdistance" 0.0

"$alpha_unclamped" 0.0

//Fade when player gets near

"Proxies" {

"PlayerProximity"

{

"resultVar" "$playerdistance"

}

"Subtract"

{

"srcVar1" "$playerdistance"

"srcVar2" "$param"

"resultVar" "$alpha_unclamped"

}

"Clamp"

{

"min" 0.0

"max" 1.0

"srcVar1" "$alpha_unclamped"

"resultVar" "$alpha"

}

}

--Fewes 14:44, 16 September 2010 (UTC)