1
0
Fork 0
forked from fte/fteqw

viewmodel alpha works better with (some) q3 shaders.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2004 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2006-02-22 23:43:11 +00:00
parent 903f3274d0
commit 5ab43cc90e

View file

@ -2957,6 +2957,8 @@ void CL_LinkViewModel(void)
ent.flags = Q2RF_WEAPONMODEL|Q2RF_DEPTHHACK;
ent.shaderRGBA[3] = ent.alpha*255;
V_AddEntity(&ent);
if (!v_powerupshell.value)
@ -3001,7 +3003,6 @@ void CL_LinkViewModel(void)
ent.shaderRGBA[0] = (!!(ent.flags & Q2RF_SHELL_RED)) * 255;
ent.shaderRGBA[1] = (!!(ent.flags & Q2RF_SHELL_GREEN)) * 255;
ent.shaderRGBA[2] = (!!(ent.flags & Q2RF_SHELL_BLUE)) * 255;
ent.shaderRGBA[3] = ent.alpha*255;
ent.forcedshader = R_RegisterCustom("q2/shell", Shader_DefaultSkinShell);
}
#endif