add game&rawdata
This commit is contained in:
parent
0133cd976c
commit
49b34b5546
45731 changed files with 709831 additions and 0 deletions
39
gamedata/shaders/r3/common_policies.h
Normal file
39
gamedata/shaders/r3/common_policies.h
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
#ifndef common_policies_h_included
|
||||
#define common_policies_h_included
|
||||
|
||||
// Define default sample index for MSAA
|
||||
#ifndef ISAMPLE
|
||||
#define ISAMPLE 0
|
||||
#endif // ISAMPLE
|
||||
|
||||
// redefine sample index
|
||||
#ifdef MSAA_OPTIMIZATION
|
||||
#undef ISAMPLE
|
||||
#define ISAMPLE iSample
|
||||
#endif // MSAA_OPTIMIZATION
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// GLD_P - gbuffer_load_data
|
||||
#ifdef GBUFFER_OPTIMIZATION
|
||||
#define GLD_P( _tc, _pos2d, _iSample ) _tc, _pos2d, _iSample
|
||||
#else // GBUFFER_OPTIMIZATION
|
||||
#define GLD_P( _tc, _pos2d, _iSample ) _tc, _iSample
|
||||
#endif // GBUFFER_OPTIMIZATION
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// CS_P
|
||||
#ifdef USE_MSAA
|
||||
# ifdef GBUFFER_OPTIMIZATION
|
||||
# define CS_P( _P, _N, _tc0, _tcJ, _pos2d, _iSample ) _P, _N, _tc0, _tcJ, _pos2d, _iSample
|
||||
# else // GBUFFER_OPTIMIZATION
|
||||
# define CS_P( _P, _N, _tc0, _tcJ, _pos2d, _iSample ) _P, _N, _tc0, _tcJ, _iSample
|
||||
# endif // GBUFFER_OPTIMIZATION
|
||||
#else
|
||||
# ifdef GBUFFER_OPTIMIZATION
|
||||
# define CS_P( _P, _N, _tc0, _tcJ, _pos2d, _iSample ) _P, _N, _tc0, _tcJ, _pos2d
|
||||
# else // GBUFFER_OPTIMIZATION
|
||||
# define CS_P( _P, _N, _tc0, _tcJ, _pos2d, _iSample ) _P, _N, _tc0, _tcJ
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif // common_policies_h_included
|
||||
Loading…
Add table
Add a link
Reference in a new issue