tele portal
Posted: Wed Aug 03, 2011 6:11 pm
Can the tele portal be applied to a custom texture or is hard coded to work only with portal_sfx texture?
Code: Select all
textures/sfx/portal_sfx
{
portal << THIS IS THAT IMPORTANT COMMAND
surfaceparm nolightmap
deformVertexes wave 100 sin 0 2 0 .5
{
map textures/sfx/portal_sfx3.tga
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
depthWrite
}
{
map textures/sfx/portal_sfx1.tga
blendfunc gl_dst_color gl_zero
tcMod rotate 360
}
{
map textures/sfx/portal_sfx.tga
blendfunc gl_one gl_one
rgbgen wave inversesawtooth 0 .5 .2 .5
}
{
map textures/sfx/portalfog.tga
blendfunc gl_src_alpha gl_one_minus_src_alpha
alphagen portal 256
rgbGen identityLighting
tcmod rotate .1 //.1
tcmod scroll .01 .03
}
}