Hello guys,
I'm currently implementing a stealth suit for my mod, and yeah, I couldn't
resist to give the predator effect a try.
Here's the material code I'm using:
"Refract"
{
"$model" 1
"$refractamount" "1.0"
"$refracttint" "[1.0 1 1]"
"$dudvmap" "dev/water_dudv"
"$normalmap" "dev/water_normal"
"$surfaceprop" "water"
"$bumpframe" "0"
"Proxies"
{
"AnimatedTexture"
{
"animatedtexturevar" "$normalmap"
"animatedtextureframenumvar" "$bumpframe"
"animatedtextureframerate" 30.00
}
}
}
I got the effect to load properly ingame but I'm running into a wierd
problem depending on the angle I am facing. The effect is working just fine
from one side, and goes totally wrong when I move to the other side. It no
longer seems to "refract" what's behind it. For instance, if I put a player
A using the stealth effect in front of another player B not using it, you
won't see player B through player A. If I change my position a bit, i will
get it to work as intended.
I am not sure what the problem is here. Since this is a ripoff from the
water shader, I'm guessing it has something to do with the effect only
applying from one side. Could anyone give me some pointers or even better,
some code to fix this please?
Also, is it possible to dynamically change a material parameter (such as
$refractionamount ) from the code?
Thanks in advance!
Spk
- Nuclear Dawn
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders