mirror of
https://github.com/DrBeef/JKXR.git
synced 2025-01-31 12:40:42 +00:00
Removed the no-backface-culling for weapons as it is no longer needed
used only for hand models now
This commit is contained in:
parent
b06e1fb9f3
commit
7b06b7a8c0
4 changed files with 4 additions and 4 deletions
|
@ -76,7 +76,7 @@ along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#define RF_FORCE_ENT_ALPHA 0x800000 // override shader alpha settings
|
||||
|
||||
#define RF_VRVIEWMODEL 0x1000000 // specifically drawing a VR hand/weapon model
|
||||
#define RF_VRNOCULLFACE 0x1000000 // specifically drawing a VR hand so back face culling is disabled
|
||||
|
||||
// refdef flags
|
||||
#define RDF_NOWORLDMODEL 1 // used for player configuration screen
|
||||
|
|
|
@ -810,7 +810,7 @@ void RB_RenderDrawSurfList( drawSurf_t *drawSurfs, int numDrawSurfs ) {
|
|||
depthRange = qtrue;
|
||||
}
|
||||
|
||||
if (backEnd.currentEntity->e.renderfx & RF_VRVIEWMODEL) {
|
||||
if (backEnd.currentEntity->e.renderfx & RF_VRNOCULLFACE) {
|
||||
isVRViewModel = qtrue;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -2052,7 +2052,7 @@ wasForceSpeed=isForceSpeed;
|
|||
VectorMA( handEnt.origin, -3.0f, forward, handEnt.origin );
|
||||
|
||||
|
||||
handEnt.renderfx = RF_DEPTHHACK | RF_VRVIEWMODEL;
|
||||
handEnt.renderfx = RF_DEPTHHACK | RF_VRNOCULLFACE;
|
||||
|
||||
if (cg.snap->ps.powerups[PW_FORCE_PUSH] > cg.time ||
|
||||
(cg.snap->ps.forcePowersActive & (1<<FP_GRIP)) ||
|
||||
|
|
|
@ -1230,7 +1230,7 @@ void CG_AddViewWeapon( playerState_t *ps )
|
|||
AnglesToAxis( angles, gun.axis );
|
||||
CG_PositionEntityOnTag( &gun, &hand, weapon->handsModel, "tag_weapon");
|
||||
|
||||
gun.renderfx = RF_DEPTHHACK | RF_FIRST_PERSON | RF_VRVIEWMODEL;
|
||||
gun.renderfx = RF_DEPTHHACK | RF_FIRST_PERSON ;
|
||||
|
||||
|
||||
//---------
|
||||
|
|
Loading…
Reference in a new issue