- Jun 25, 2012
- 5
- 0
So I want to make a smooth & slow animated rainbow texture.
I've tried making an animated texture but the transitions between colors was too jagged.
So I've done some research and I believe that I can edit $color in the VMT.
I have a solid white texture as the base, however in the VMT I have the following:
Now I know the timing or w/e is probably not a perfect rainbow, but im not seeing any color changes in game. All I see is that solid white texture.
Anyone have any ideas?
I've tried making an animated texture but the transitions between colors was too jagged.
So I've done some research and I believe that I can edit $color in the VMT.
I have a solid white texture as the base, however in the VMT I have the following:
Code:
"LightmappedGeneric"
{
"$basetexture" "test/whitetexture"
$setred 0
$setblu 0
$setgrn 0
$color "{ $setred $setgrn $setblu }"
Proxies
{
Sine
{
resultVar $setred
sineperiod 12
timeoffset 0
sinemin 0
sinemax 255
}
Sine
{
resultVar $setgrn
sineperiod 12
timeoffset 4
sinemin 0
sinemax 255
}
Sine
{
resultVar $setblu
sineperiod 12
timeoffset 8
sinemin 0
sinemax 255
}
}
}
Now I know the timing or w/e is probably not a perfect rainbow, but im not seeing any color changes in game. All I see is that solid white texture.
Anyone have any ideas?