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:
parent
903f3274d0
commit
5ab43cc90e
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue