From 47c5a44cea178039532535ee19a53cde144d600b Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 22 Feb 2006 23:40:49 +0000 Subject: [PATCH] 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 --- engine/client/clq2_ents.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/client/clq2_ents.c b/engine/client/clq2_ents.c index d19222c5f..9ad0d1b5e 100644 --- a/engine/client/clq2_ents.c +++ b/engine/client/clq2_ents.c @@ -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++)