mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-22 04:01:33 +00:00
Merge branch 'main' into contributions
This commit is contained in:
commit
baec8832ab
6 changed files with 6 additions and 6 deletions
|
@ -2364,7 +2364,7 @@ void CG_DrawActiveFrame( int serverTime, stereoFrame_t stereoView ) {
|
|||
VectorMA( handEnt.origin, -3.0f, forward, handEnt.origin );
|
||||
|
||||
|
||||
handEnt.renderfx = RF_DEPTHHACK | RF_VRNOCULLFACE;
|
||||
handEnt.renderfx = RF_DEPTHHACK | RF_VRVIEWMODEL;
|
||||
|
||||
if (cg.snap->ps.powerups[PW_FORCE_PUSH] > cg.time ||
|
||||
(cg.snap->ps.forcePowersActive & (1<<FP_GRIP)) ||
|
||||
|
|
|
@ -1323,7 +1323,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;
|
||||
gun.renderfx = RF_DEPTHHACK | RF_FIRST_PERSON | RF_VRVIEWMODEL;
|
||||
|
||||
//---------
|
||||
// OK, we are making an assumption here that if we have the phaser that it is always on....
|
||||
|
|
|
@ -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_VRNOCULLFACE 0x1000000 // specifically drawing a VR hand so back face culling is disabled
|
||||
#define RF_VRVIEWMODEL 0x1000000 // specifically drawing a VR hand/weapon model
|
||||
|
||||
// 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_VRNOCULLFACE) {
|
||||
if (backEnd.currentEntity->e.renderfx & RF_VRVIEWMODEL) {
|
||||
isVRViewModel = qtrue;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -2052,7 +2052,7 @@ wasForceSpeed=isForceSpeed;
|
|||
VectorMA( handEnt.origin, -3.0f, forward, handEnt.origin );
|
||||
|
||||
|
||||
handEnt.renderfx = RF_DEPTHHACK | RF_VRNOCULLFACE;
|
||||
handEnt.renderfx = RF_DEPTHHACK | RF_VRVIEWMODEL;
|
||||
|
||||
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 ;
|
||||
gun.renderfx = RF_DEPTHHACK | RF_FIRST_PERSON | RF_VRVIEWMODEL;
|
||||
|
||||
|
||||
//---------
|
||||
|
|
Loading…
Reference in a new issue