PDA

View Full Version : need a shader to flash between 2 diffrent textures


SD_Radical_Ed
12-05-2003, 04:19 PM
self explanitrory. i have 2 jpegs. need a shader that will rotate between them at a 3 second interval. the jpegs are named bigo1.jpg and bigo2.jpg

unraveled
12-06-2003, 07:41 PM
textures/mapname/bigo
{
surfaceparm nolightmap
{
map textures/mapname/bigo1.jpg
rgbGen wave square 0 1 0 0.166667
}
{
map textures/mapname/bigo2.jpg
blendfunc add
rgbGen wave square 0 1 0 -0.166667
}
}


be sure to replace "mapname" with the name of the folder where your bigo textures are