viewmodel alpha works with (some) q3 shaders.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2002 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-22 23:40:49 +00:00
parent b54b52f8cc
commit 47c5a44cea

View file

@ -1893,7 +1893,10 @@ void CLQ2_AddViewWeapon (q2player_state_t *ps, q2player_state_t *ops)
gun.scale = 1;
gun.alpha = 1;
if (r_drawviewmodel.value < 1 || r_drawviewmodel.value > 0)
{
gun.alpha = r_drawviewmodel.value;
gun.shaderRGBA[3] = gun.alpha*255;
}
// set up gun position
for (i=0 ; i<3 ; i++)