Add PBR support (#91)

* Add PBR support
* Fix physics props turning black
This commit is contained in:
LegendGuard
2022-08-10 16:41:01 +02:00
committed by GitHub
parent 08073ae622
commit a87918565a
16 changed files with 2481 additions and 2 deletions

View File

@@ -20,11 +20,17 @@
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
#define PBR_CHANGE
IMPLEMENT_CLIENTCLASS_DT(C_PhysicsProp, DT_PhysicsProp, CPhysicsProp)
RecvPropBool( RECVINFO( m_bAwake ) ),
END_RECV_TABLE()
ConVar r_PhysPropStaticLighting( "r_PhysPropStaticLighting", "1" );
#ifdef PBR_CHANGE
ConVar r_PhysPropStaticLighting( "r_PhysPropStaticLighting", "0" );
#else
ConVar r_PhysPropStaticLighting( "r_PhysPropStaticLighting", "1" );
#endif
//-----------------------------------------------------------------------------