mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
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:
parent
b54b52f8cc
commit
47c5a44cea
1 changed files with 3 additions and 0 deletions
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue