mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-12 01:28:00 +08:00
Update from SDK 2013
This commit is contained in:
1 parent
47a0ae90ef
commit
25351308fe
7474 files changed
+2597282
-1253167
No files matched your search
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bloom_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
bloom_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bloom_ps20 0
|
||||
class bloom_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
bloom_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bloom_ps20 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bloom_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
bloom_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bloom_ps20b 0
|
||||
class bloom_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
bloom_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bloom_ps20b 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurfilter_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
blurfilter_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blurfilter_ps20 0
|
||||
class blurfilter_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
blurfilter_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_blurfilter_ps20 0
|
||||
@@ -0,0 +1,85 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurfilter_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nAPPROX_SRGB_ADAPTER;
|
||||
#ifdef _DEBUG
|
||||
bool m_bAPPROX_SRGB_ADAPTER;
|
||||
#endif
|
||||
public:
|
||||
void SetAPPROX_SRGB_ADAPTER( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nAPPROX_SRGB_ADAPTER = i;
|
||||
#ifdef _DEBUG
|
||||
m_bAPPROX_SRGB_ADAPTER = true;
|
||||
#endif
|
||||
}
|
||||
void SetAPPROX_SRGB_ADAPTER( bool i )
|
||||
{
|
||||
m_nAPPROX_SRGB_ADAPTER = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bAPPROX_SRGB_ADAPTER = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
blurfilter_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
#ifdef _DEBUG
|
||||
m_bAPPROX_SRGB_ADAPTER = false;
|
||||
#endif // _DEBUG
|
||||
m_nAPPROX_SRGB_ADAPTER = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB && m_bAPPROX_SRGB_ADAPTER;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + ( 2 * m_nAPPROX_SRGB_ADAPTER ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blurfilter_ps20b psh_forgot_to_set_static_APPROX_SRGB_ADAPTER + 0
|
||||
class blurfilter_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
blurfilter_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_blurfilter_ps20b 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurfilter_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
blurfilter_vs11_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blurfilter_vs11 0
|
||||
class blurfilter_vs11_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
blurfilter_vs11_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_blurfilter_vs11 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurfilter_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
blurfilter_vs20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blurfilter_vs20 0
|
||||
class blurfilter_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
blurfilter_vs20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_blurfilter_vs20 0
|
||||
@@ -0,0 +1,30 @@
|
||||
class bufferclearobeystencil_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
bufferclearobeystencil_vs11_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class bufferclearobeystencil_vs11_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
bufferclearobeystencil_vs11_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class bumpmappedenvmap_Static_Index
|
||||
{
|
||||
public:
|
||||
bumpmappedenvmap_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class bumpmappedenvmap_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
bumpmappedenvmap_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class bumpmappedlightmap_Static_Index
|
||||
{
|
||||
public:
|
||||
bumpmappedlightmap_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class bumpmappedlightmap_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
bumpmappedlightmap_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class cable_Static_Index
|
||||
{
|
||||
public:
|
||||
cable_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class cable_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
cable_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,82 @@
|
||||
class debugtangentspace_Static_Index
|
||||
{
|
||||
public:
|
||||
debugtangentspace_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class debugtangentspace_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
debugtangentspace_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_nohdr_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCSTRIKE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCSTRIKE;
|
||||
#endif
|
||||
public:
|
||||
void SetCSTRIKE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCSTRIKE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCSTRIKE = true;
|
||||
#endif
|
||||
}
|
||||
void SetCSTRIKE( bool i )
|
||||
{
|
||||
m_nCSTRIKE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCSTRIKE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
downsample_nohdr_ps20_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCSTRIKE = false;
|
||||
#endif // _DEBUG
|
||||
m_nCSTRIKE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCSTRIKE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCSTRIKE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_downsample_nohdr_ps20 psh_forgot_to_set_static_CSTRIKE + 0
|
||||
class downsample_nohdr_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
downsample_nohdr_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_downsample_nohdr_ps20 0
|
||||
@@ -0,0 +1,110 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_nohdr_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nSRGB_ADAPTER;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSRGB_ADAPTER;
|
||||
#endif
|
||||
public:
|
||||
void SetSRGB_ADAPTER( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSRGB_ADAPTER = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSRGB_ADAPTER = true;
|
||||
#endif
|
||||
}
|
||||
void SetSRGB_ADAPTER( bool i )
|
||||
{
|
||||
m_nSRGB_ADAPTER = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSRGB_ADAPTER = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCSTRIKE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCSTRIKE;
|
||||
#endif
|
||||
public:
|
||||
void SetCSTRIKE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCSTRIKE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCSTRIKE = true;
|
||||
#endif
|
||||
}
|
||||
void SetCSTRIKE( bool i )
|
||||
{
|
||||
m_nCSTRIKE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCSTRIKE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
downsample_nohdr_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bSRGB_ADAPTER = false;
|
||||
#endif // _DEBUG
|
||||
m_nSRGB_ADAPTER = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
#ifdef _DEBUG
|
||||
m_bCSTRIKE = false;
|
||||
#endif // _DEBUG
|
||||
m_nCSTRIKE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bSRGB_ADAPTER && m_bCONVERT_TO_SRGB && m_bCSTRIKE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nSRGB_ADAPTER ) + ( 2 * m_nCONVERT_TO_SRGB ) + ( 4 * m_nCSTRIKE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_downsample_nohdr_ps20b psh_forgot_to_set_static_SRGB_ADAPTER + psh_forgot_to_set_static_CSTRIKE + 0
|
||||
class downsample_nohdr_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
downsample_nohdr_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_downsample_nohdr_ps20b 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
downsample_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_downsample_ps20 0
|
||||
class downsample_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
downsample_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_downsample_ps20 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
downsample_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_downsample_ps20b 0
|
||||
class downsample_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
downsample_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_downsample_ps20b 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
downsample_vs11_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_downsample_vs11 0
|
||||
class downsample_vs11_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
downsample_vs11_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_downsample_vs11 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
downsample_vs20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_downsample_vs20 0
|
||||
class downsample_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
downsample_vs20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_downsample_vs20 0
|
||||
@@ -0,0 +1,134 @@
|
||||
class eyes_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nHALF_LAMBERT;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHALF_LAMBERT;
|
||||
#endif
|
||||
public:
|
||||
void SetHALF_LAMBERT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHALF_LAMBERT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = true;
|
||||
#endif
|
||||
}
|
||||
void SetHALF_LAMBERT( bool i )
|
||||
{
|
||||
m_nHALF_LAMBERT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
eyes_Static_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = false;
|
||||
#endif // _DEBUG
|
||||
m_nHALF_LAMBERT = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bHALF_LAMBERT;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 88 * m_nHALF_LAMBERT ) + 0;
|
||||
}
|
||||
};
|
||||
class eyes_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nLIGHT_COMBO;
|
||||
#ifdef _DEBUG
|
||||
bool m_bLIGHT_COMBO;
|
||||
#endif
|
||||
public:
|
||||
void SetLIGHT_COMBO( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 21 );
|
||||
m_nLIGHT_COMBO = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = true;
|
||||
#endif
|
||||
}
|
||||
void SetLIGHT_COMBO( bool i )
|
||||
{
|
||||
m_nLIGHT_COMBO = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
eyes_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = false;
|
||||
#endif // _DEBUG
|
||||
m_nLIGHT_COMBO = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bLIGHT_COMBO && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nLIGHT_COMBO ) + ( 44 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrcombineto16bit_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
hdrcombineto16bit_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_hdrcombineto16bit_ps20 0
|
||||
class hdrcombineto16bit_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
hdrcombineto16bit_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_hdrcombineto16bit_ps20 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrcombineto16bit_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
hdrcombineto16bit_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_hdrcombineto16bit_ps20b 0
|
||||
class hdrcombineto16bit_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
hdrcombineto16bit_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_hdrcombineto16bit_ps20b 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrcombineto16bit_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
hdrcombineto16bit_vs20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_hdrcombineto16bit_vs20 0
|
||||
class hdrcombineto16bit_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
hdrcombineto16bit_vs20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_hdrcombineto16bit_vs20 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrselectrange_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
hdrselectrange_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_hdrselectrange_ps20 0
|
||||
class hdrselectrange_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
hdrselectrange_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_hdrselectrange_ps20 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrselectrange_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
hdrselectrange_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_hdrselectrange_ps20b 0
|
||||
class hdrselectrange_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
hdrselectrange_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_hdrselectrange_ps20b 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrselectrange_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
hdrselectrange_vs20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_hdrselectrange_vs20 0
|
||||
class hdrselectrange_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
hdrselectrange_vs20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_hdrselectrange_vs20 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class introscreenspaceeffect_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
introscreenspaceeffect_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_introscreenspaceeffect_ps20 0
|
||||
class introscreenspaceeffect_ps20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nMODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMODE;
|
||||
#endif
|
||||
public:
|
||||
void SetMODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 9 );
|
||||
m_nMODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetMODE( bool i )
|
||||
{
|
||||
m_nMODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
introscreenspaceeffect_ps20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bMODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nMODE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bMODE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nMODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_introscreenspaceeffect_ps20 psh_forgot_to_set_dynamic_MODE + 0
|
||||
@@ -0,0 +1,112 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class introscreenspaceeffect_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nLINEAR_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bLINEAR_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetLINEAR_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nLINEAR_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLINEAR_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetLINEAR_TO_SRGB( bool i )
|
||||
{
|
||||
m_nLINEAR_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLINEAR_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
introscreenspaceeffect_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
#ifdef _DEBUG
|
||||
m_bLINEAR_TO_SRGB = false;
|
||||
#endif // _DEBUG
|
||||
m_nLINEAR_TO_SRGB = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB && m_bLINEAR_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 10 * m_nCONVERT_TO_SRGB ) + ( 20 * m_nLINEAR_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_introscreenspaceeffect_ps20b psh_forgot_to_set_static_LINEAR_TO_SRGB + 0
|
||||
class introscreenspaceeffect_ps20b_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nMODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMODE;
|
||||
#endif
|
||||
public:
|
||||
void SetMODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 9 );
|
||||
m_nMODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetMODE( bool i )
|
||||
{
|
||||
m_nMODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
introscreenspaceeffect_ps20b_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bMODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nMODE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bMODE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nMODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_introscreenspaceeffect_ps20b psh_forgot_to_set_dynamic_MODE + 0
|
||||
@@ -0,0 +1,82 @@
|
||||
class jellyfish_Static_Index
|
||||
{
|
||||
public:
|
||||
jellyfish_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class jellyfish_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
jellyfish_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class jojirium_Static_Index
|
||||
{
|
||||
public:
|
||||
jojirium_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class jojirium_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
jojirium_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,134 @@
|
||||
class lightingonly_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nHALF_LAMBERT;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHALF_LAMBERT;
|
||||
#endif
|
||||
public:
|
||||
void SetHALF_LAMBERT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHALF_LAMBERT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = true;
|
||||
#endif
|
||||
}
|
||||
void SetHALF_LAMBERT( bool i )
|
||||
{
|
||||
m_nHALF_LAMBERT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
lightingonly_Static_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = false;
|
||||
#endif // _DEBUG
|
||||
m_nHALF_LAMBERT = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bHALF_LAMBERT;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 88 * m_nHALF_LAMBERT ) + 0;
|
||||
}
|
||||
};
|
||||
class lightingonly_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nLIGHT_COMBO;
|
||||
#ifdef _DEBUG
|
||||
bool m_bLIGHT_COMBO;
|
||||
#endif
|
||||
public:
|
||||
void SetLIGHT_COMBO( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 21 );
|
||||
m_nLIGHT_COMBO = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = true;
|
||||
#endif
|
||||
}
|
||||
void SetLIGHT_COMBO( bool i )
|
||||
{
|
||||
m_nLIGHT_COMBO = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
lightingonly_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = false;
|
||||
#endif // _DEBUG
|
||||
m_nLIGHT_COMBO = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bLIGHT_COMBO && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nLIGHT_COMBO ) + ( 44 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class lightmappedgeneric_basetexture_Static_Index
|
||||
{
|
||||
public:
|
||||
lightmappedgeneric_basetexture_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class lightmappedgeneric_basetexture_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
lightmappedgeneric_basetexture_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class lightmappedgeneric_bumpmappedlightmap_base_ps14_Static_Index
|
||||
{
|
||||
public:
|
||||
lightmappedgeneric_bumpmappedlightmap_base_ps14_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class lightmappedgeneric_bumpmappedlightmap_base_ps14_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
lightmappedgeneric_bumpmappedlightmap_base_ps14_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
class lightmappedgeneric_bumpmappedlightmap_blend_ps14_Static_Index
|
||||
{
|
||||
public:
|
||||
lightmappedgeneric_bumpmappedlightmap_blend_ps14_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class lightmappedgeneric_bumpmappedlightmap_blend_ps14_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
lightmappedgeneric_bumpmappedlightmap_blend_ps14_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class lightmappedgeneric_decal_Static_Index
|
||||
{
|
||||
public:
|
||||
lightmappedgeneric_decal_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class lightmappedgeneric_decal_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
lightmappedgeneric_decal_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class lightmappedgeneric_lightingonly_Static_Index
|
||||
{
|
||||
public:
|
||||
lightmappedgeneric_lightingonly_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class lightmappedgeneric_lightingonly_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
lightmappedgeneric_lightingonly_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class particlesphere_ps11_Static_Index
|
||||
{
|
||||
public:
|
||||
particlesphere_ps11_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_particlesphere_ps11 0
|
||||
class particlesphere_ps11_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
particlesphere_ps11_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_particlesphere_ps11 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class particlesphere_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
particlesphere_vs11_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_particlesphere_vs11 0
|
||||
class particlesphere_vs11_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetFOGTYPE( bool i )
|
||||
{
|
||||
m_nFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
particlesphere_vs11_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nFOGTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_particlesphere_vs11 vsh_forgot_to_set_dynamic_FOGTYPE + 0
|
||||
@@ -0,0 +1,82 @@
|
||||
class refract_model_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
refract_model_vs11_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class refract_model_vs11_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
refract_model_vs11_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,262 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class refract_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nBLUR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBLUR;
|
||||
#endif
|
||||
public:
|
||||
void SetBLUR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBLUR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBLUR = true;
|
||||
#endif
|
||||
}
|
||||
void SetBLUR( bool i )
|
||||
{
|
||||
m_nBLUR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBLUR = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFADEOUTONSILHOUETTE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFADEOUTONSILHOUETTE;
|
||||
#endif
|
||||
public:
|
||||
void SetFADEOUTONSILHOUETTE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFADEOUTONSILHOUETTE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFADEOUTONSILHOUETTE = true;
|
||||
#endif
|
||||
}
|
||||
void SetFADEOUTONSILHOUETTE( bool i )
|
||||
{
|
||||
m_nFADEOUTONSILHOUETTE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFADEOUTONSILHOUETTE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCUBEMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCUBEMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetCUBEMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCUBEMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetCUBEMAP( bool i )
|
||||
{
|
||||
m_nCUBEMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nREFRACTTINTTEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bREFRACTTINTTEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetREFRACTTINTTEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nREFRACTTINTTEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACTTINTTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetREFRACTTINTTEXTURE( bool i )
|
||||
{
|
||||
m_nREFRACTTINTTEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACTTINTTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nMASKED;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMASKED;
|
||||
#endif
|
||||
public:
|
||||
void SetMASKED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMASKED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKED = true;
|
||||
#endif
|
||||
}
|
||||
void SetMASKED( bool i )
|
||||
{
|
||||
m_nMASKED = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKED = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCOLORMODULATE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCOLORMODULATE;
|
||||
#endif
|
||||
public:
|
||||
void SetCOLORMODULATE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCOLORMODULATE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCOLORMODULATE = true;
|
||||
#endif
|
||||
}
|
||||
void SetCOLORMODULATE( bool i )
|
||||
{
|
||||
m_nCOLORMODULATE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOLORMODULATE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSECONDARY_NORMAL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSECONDARY_NORMAL;
|
||||
#endif
|
||||
public:
|
||||
void SetSECONDARY_NORMAL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSECONDARY_NORMAL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSECONDARY_NORMAL = true;
|
||||
#endif
|
||||
}
|
||||
void SetSECONDARY_NORMAL( bool i )
|
||||
{
|
||||
m_nSECONDARY_NORMAL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSECONDARY_NORMAL = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nNORMAL_DECODE_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNORMAL_DECODE_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetNORMAL_DECODE_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nNORMAL_DECODE_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetNORMAL_DECODE_MODE( bool i )
|
||||
{
|
||||
m_nNORMAL_DECODE_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
refract_ps20_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bBLUR = false;
|
||||
#endif // _DEBUG
|
||||
m_nBLUR = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFADEOUTONSILHOUETTE = false;
|
||||
#endif // _DEBUG
|
||||
m_nFADEOUTONSILHOUETTE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nCUBEMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACTTINTTEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nREFRACTTINTTEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKED = false;
|
||||
#endif // _DEBUG
|
||||
m_nMASKED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOLORMODULATE = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOLORMODULATE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSECONDARY_NORMAL = false;
|
||||
#endif // _DEBUG
|
||||
m_nSECONDARY_NORMAL = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nNORMAL_DECODE_MODE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bBLUR && m_bFADEOUTONSILHOUETTE && m_bCUBEMAP && m_bREFRACTTINTTEXTURE && m_bMASKED && m_bCOLORMODULATE && m_bSECONDARY_NORMAL && m_bNORMAL_DECODE_MODE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nBLUR ) + ( 4 * m_nFADEOUTONSILHOUETTE ) + ( 8 * m_nCUBEMAP ) + ( 16 * m_nREFRACTTINTTEXTURE ) + ( 32 * m_nMASKED ) + ( 64 * m_nCOLORMODULATE ) + ( 128 * m_nSECONDARY_NORMAL ) + ( 256 * m_nNORMAL_DECODE_MODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_refract_ps20 psh_forgot_to_set_static_BLUR + psh_forgot_to_set_static_FADEOUTONSILHOUETTE + psh_forgot_to_set_static_CUBEMAP + psh_forgot_to_set_static_REFRACTTINTTEXTURE + psh_forgot_to_set_static_MASKED + psh_forgot_to_set_static_COLORMODULATE + psh_forgot_to_set_static_SECONDARY_NORMAL + psh_forgot_to_set_static_NORMAL_DECODE_MODE + 0
|
||||
class refract_ps20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
refract_ps20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_refract_ps20 psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0
|
||||
@@ -0,0 +1,212 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// $MASKED && $BLUR
|
||||
// defined $HDRTYPE && defined $HDRENABLED && !$HDRTYPE && $HDRENABLED
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// defined $LIGHTING_PREVIEW && defined $HDRTYPE && $LIGHTING_PREVIEW && $HDRTYPE != 0
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
// ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
|
||||
// defined $HDRTYPE && defined $HDRENABLED && !$HDRTYPE && $HDRENABLED
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// defined $LIGHTING_PREVIEW && defined $HDRTYPE && $LIGHTING_PREVIEW && $HDRTYPE != 0
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
// ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
|
||||
|
||||
#pragma once
|
||||
#include "shaderlib/cshader.h"
|
||||
class refract_ps20b_Static_Index
|
||||
{
|
||||
unsigned int m_nCONVERT_TO_SRGB : 2;
|
||||
unsigned int m_nBLUR : 2;
|
||||
unsigned int m_nFADEOUTONSILHOUETTE : 2;
|
||||
unsigned int m_nCUBEMAP : 2;
|
||||
unsigned int m_nREFRACTTINTTEXTURE : 2;
|
||||
unsigned int m_nMASKED : 2;
|
||||
unsigned int m_nCOLORMODULATE : 2;
|
||||
unsigned int m_nSECONDARY_NORMAL : 2;
|
||||
unsigned int m_nNORMAL_DECODE_MODE : 1;
|
||||
unsigned int m_nSHADER_SRGB_READ : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBLUR : 1;
|
||||
bool m_bFADEOUTONSILHOUETTE : 1;
|
||||
bool m_bCUBEMAP : 1;
|
||||
bool m_bREFRACTTINTTEXTURE : 1;
|
||||
bool m_bMASKED : 1;
|
||||
bool m_bCOLORMODULATE : 1;
|
||||
bool m_bSECONDARY_NORMAL : 1;
|
||||
bool m_bNORMAL_DECODE_MODE : 1;
|
||||
bool m_bSHADER_SRGB_READ : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
}
|
||||
|
||||
void SetBLUR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBLUR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBLUR = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetFADEOUTONSILHOUETTE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFADEOUTONSILHOUETTE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFADEOUTONSILHOUETTE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetCUBEMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCUBEMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetREFRACTTINTTEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nREFRACTTINTTEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACTTINTTEXTURE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetMASKED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMASKED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKED = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetCOLORMODULATE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCOLORMODULATE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCOLORMODULATE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetSECONDARY_NORMAL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSECONDARY_NORMAL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSECONDARY_NORMAL = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetNORMAL_DECODE_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nNORMAL_DECODE_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetSHADER_SRGB_READ( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSHADER_SRGB_READ = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSHADER_SRGB_READ = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
refract_ps20b_Static_Index( )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
m_nBLUR = 0;
|
||||
m_nFADEOUTONSILHOUETTE = 0;
|
||||
m_nCUBEMAP = 0;
|
||||
m_nREFRACTTINTTEXTURE = 0;
|
||||
m_nMASKED = 0;
|
||||
m_nCOLORMODULATE = 0;
|
||||
m_nSECONDARY_NORMAL = 0;
|
||||
m_nNORMAL_DECODE_MODE = 0;
|
||||
m_nSHADER_SRGB_READ = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBLUR = false;
|
||||
m_bFADEOUTONSILHOUETTE = false;
|
||||
m_bCUBEMAP = false;
|
||||
m_bREFRACTTINTTEXTURE = false;
|
||||
m_bMASKED = false;
|
||||
m_bCOLORMODULATE = false;
|
||||
m_bSECONDARY_NORMAL = false;
|
||||
m_bNORMAL_DECODE_MODE = false;
|
||||
m_bSHADER_SRGB_READ = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bBLUR && m_bFADEOUTONSILHOUETTE && m_bCUBEMAP && m_bREFRACTTINTTEXTURE && m_bMASKED && m_bCOLORMODULATE && m_bSECONDARY_NORMAL && m_bNORMAL_DECODE_MODE && m_bSHADER_SRGB_READ );
|
||||
AssertMsg( !( m_nMASKED && m_nBLUR ), "Invalid combo combination ( MASKED && BLUR )" );
|
||||
return ( 6 * m_nCONVERT_TO_SRGB ) + ( 12 * m_nBLUR ) + ( 24 * m_nFADEOUTONSILHOUETTE ) + ( 48 * m_nCUBEMAP ) + ( 96 * m_nREFRACTTINTTEXTURE ) + ( 192 * m_nMASKED ) + ( 384 * m_nCOLORMODULATE ) + ( 768 * m_nSECONDARY_NORMAL ) + ( 1536 * m_nNORMAL_DECODE_MODE ) + ( 1536 * m_nSHADER_SRGB_READ ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderStaticTest_refract_ps20b psh_forgot_to_set_static_BLUR + psh_forgot_to_set_static_FADEOUTONSILHOUETTE + psh_forgot_to_set_static_CUBEMAP + psh_forgot_to_set_static_REFRACTTINTTEXTURE + psh_forgot_to_set_static_MASKED + psh_forgot_to_set_static_COLORMODULATE + psh_forgot_to_set_static_SECONDARY_NORMAL + psh_forgot_to_set_static_NORMAL_DECODE_MODE + psh_forgot_to_set_static_SHADER_SRGB_READ
|
||||
|
||||
|
||||
class refract_ps20b_Dynamic_Index
|
||||
{
|
||||
unsigned int m_nPIXELFOGTYPE : 2;
|
||||
unsigned int m_nWRITE_DEPTH_TO_DESTALPHA : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE : 1;
|
||||
bool m_bWRITE_DEPTH_TO_DESTALPHA : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetWRITE_DEPTH_TO_DESTALPHA( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = i;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
refract_ps20b_Dynamic_Index( )
|
||||
{
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bPIXELFOGTYPE && m_bWRITE_DEPTH_TO_DESTALPHA );
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + ( 3 * m_nWRITE_DEPTH_TO_DESTALPHA ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderDynamicTest_refract_ps20b psh_forgot_to_set_dynamic_PIXELFOGTYPE + psh_forgot_to_set_dynamic_WRITE_DEPTH_TO_DESTALPHA
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
|
||||
#pragma once
|
||||
#include "shaderlib/cshader.h"
|
||||
class refract_vs20_Static_Index
|
||||
{
|
||||
unsigned int m_nMODEL : 2;
|
||||
unsigned int m_nCOLORMODULATE : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMODEL : 1;
|
||||
bool m_bCOLORMODULATE : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetMODEL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMODEL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMODEL = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetCOLORMODULATE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCOLORMODULATE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCOLORMODULATE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
refract_vs20_Static_Index( )
|
||||
{
|
||||
m_nMODEL = 0;
|
||||
m_nCOLORMODULATE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMODEL = false;
|
||||
m_bCOLORMODULATE = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bMODEL && m_bCOLORMODULATE );
|
||||
return ( 4 * m_nMODEL ) + ( 8 * m_nCOLORMODULATE ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderStaticTest_refract_vs20 vsh_forgot_to_set_static_MODEL + vsh_forgot_to_set_static_COLORMODULATE
|
||||
|
||||
|
||||
class refract_vs20_Dynamic_Index
|
||||
{
|
||||
unsigned int m_nCOMPRESSED_VERTS : 2;
|
||||
unsigned int m_nSKINNING : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCOMPRESSED_VERTS : 1;
|
||||
bool m_bSKINNING : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetCOMPRESSED_VERTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCOMPRESSED_VERTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
refract_vs20_Dynamic_Index( )
|
||||
{
|
||||
m_nCOMPRESSED_VERTS = 0;
|
||||
m_nSKINNING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bCOMPRESSED_VERTS && m_bSKINNING );
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderDynamicTest_refract_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
class refract_world_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
refract_world_vs11_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class refract_world_vs11_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
refract_world_vs11_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class screenspaceeffect_Static_Index
|
||||
{
|
||||
public:
|
||||
screenspaceeffect_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class screenspaceeffect_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
screenspaceeffect_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,82 @@
|
||||
class shadowmodel_Static_Index
|
||||
{
|
||||
public:
|
||||
shadowmodel_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class shadowmodel_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
shadowmodel_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class shatteredglass_Static_Index
|
||||
{
|
||||
public:
|
||||
shatteredglass_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class shatteredglass_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
shatteredglass_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class shatteredglass_envmap_Static_Index
|
||||
{
|
||||
public:
|
||||
shatteredglass_envmap_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class shatteredglass_envmap_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
shatteredglass_envmap_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class shatteredglass_envmapsphere_Static_Index
|
||||
{
|
||||
public:
|
||||
shatteredglass_envmapsphere_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class shatteredglass_envmapsphere_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
shatteredglass_envmapsphere_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,212 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class shatteredglass_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCUBEMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCUBEMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetCUBEMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCUBEMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetCUBEMAP( bool i )
|
||||
{
|
||||
m_nCUBEMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nVERTEXCOLOR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bVERTEXCOLOR;
|
||||
#endif
|
||||
public:
|
||||
void SetVERTEXCOLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nVERTEXCOLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
void SetVERTEXCOLOR( bool i )
|
||||
{
|
||||
m_nVERTEXCOLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nENVMAPMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bENVMAPMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetENVMAPMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nENVMAPMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAPMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetENVMAPMASK( bool i )
|
||||
{
|
||||
m_nENVMAPMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAPMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBASEALPHAENVMAPMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASEALPHAENVMAPMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBASEALPHAENVMAPMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASEALPHAENVMAPMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMAPMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBASEALPHAENVMAPMASK( bool i )
|
||||
{
|
||||
m_nBASEALPHAENVMAPMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMAPMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHDRTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHDRTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetHDRTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nHDRTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetHDRTYPE( bool i )
|
||||
{
|
||||
m_nHDRTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
shatteredglass_ps20_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nCUBEMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = false;
|
||||
#endif // _DEBUG
|
||||
m_nVERTEXCOLOR = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAPMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nENVMAPMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMAPMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASEALPHAENVMAPMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nHDRTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCUBEMAP && m_bVERTEXCOLOR && m_bENVMAPMASK && m_bBASEALPHAENVMAPMASK && m_bHDRTYPE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 4 * m_nCUBEMAP ) + ( 8 * m_nVERTEXCOLOR ) + ( 16 * m_nENVMAPMASK ) + ( 32 * m_nBASEALPHAENVMAPMASK ) + ( 64 * m_nHDRTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_shatteredglass_ps20 psh_forgot_to_set_static_CUBEMAP + psh_forgot_to_set_static_VERTEXCOLOR + psh_forgot_to_set_static_ENVMAPMASK + psh_forgot_to_set_static_BASEALPHAENVMAPMASK + psh_forgot_to_set_static_HDRTYPE + 0
|
||||
class shatteredglass_ps20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nHDRENABLED;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHDRENABLED;
|
||||
#endif
|
||||
public:
|
||||
void SetHDRENABLED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHDRENABLED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = true;
|
||||
#endif
|
||||
}
|
||||
void SetHDRENABLED( bool i )
|
||||
{
|
||||
m_nHDRENABLED = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
shatteredglass_ps20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = false;
|
||||
#endif // _DEBUG
|
||||
m_nHDRENABLED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bHDRENABLED && m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nHDRENABLED ) + ( 2 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_shatteredglass_ps20 psh_forgot_to_set_dynamic_HDRENABLED + psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0
|
||||
@@ -0,0 +1,237 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class shatteredglass_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCUBEMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCUBEMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetCUBEMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCUBEMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetCUBEMAP( bool i )
|
||||
{
|
||||
m_nCUBEMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nVERTEXCOLOR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bVERTEXCOLOR;
|
||||
#endif
|
||||
public:
|
||||
void SetVERTEXCOLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nVERTEXCOLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
void SetVERTEXCOLOR( bool i )
|
||||
{
|
||||
m_nVERTEXCOLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nENVMAPMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bENVMAPMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetENVMAPMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nENVMAPMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAPMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetENVMAPMASK( bool i )
|
||||
{
|
||||
m_nENVMAPMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAPMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBASEALPHAENVMAPMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASEALPHAENVMAPMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBASEALPHAENVMAPMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASEALPHAENVMAPMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMAPMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBASEALPHAENVMAPMASK( bool i )
|
||||
{
|
||||
m_nBASEALPHAENVMAPMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMAPMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHDRTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHDRTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetHDRTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nHDRTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetHDRTYPE( bool i )
|
||||
{
|
||||
m_nHDRTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
shatteredglass_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nCUBEMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = false;
|
||||
#endif // _DEBUG
|
||||
m_nVERTEXCOLOR = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAPMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nENVMAPMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMAPMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASEALPHAENVMAPMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nHDRTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB && m_bCUBEMAP && m_bVERTEXCOLOR && m_bENVMAPMASK && m_bBASEALPHAENVMAPMASK && m_bHDRTYPE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 4 * m_nCONVERT_TO_SRGB ) + ( 8 * m_nCUBEMAP ) + ( 16 * m_nVERTEXCOLOR ) + ( 32 * m_nENVMAPMASK ) + ( 64 * m_nBASEALPHAENVMAPMASK ) + ( 128 * m_nHDRTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_shatteredglass_ps20b psh_forgot_to_set_static_CUBEMAP + psh_forgot_to_set_static_VERTEXCOLOR + psh_forgot_to_set_static_ENVMAPMASK + psh_forgot_to_set_static_BASEALPHAENVMAPMASK + psh_forgot_to_set_static_HDRTYPE + 0
|
||||
class shatteredglass_ps20b_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nHDRENABLED;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHDRENABLED;
|
||||
#endif
|
||||
public:
|
||||
void SetHDRENABLED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHDRENABLED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = true;
|
||||
#endif
|
||||
}
|
||||
void SetHDRENABLED( bool i )
|
||||
{
|
||||
m_nHDRENABLED = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
shatteredglass_ps20b_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = false;
|
||||
#endif // _DEBUG
|
||||
m_nHDRENABLED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bHDRENABLED && m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nHDRENABLED ) + ( 2 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_shatteredglass_ps20b psh_forgot_to_set_dynamic_HDRENABLED + psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0
|
||||
@@ -0,0 +1,87 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class shatteredglass_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nENVMAP_MASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bENVMAP_MASK;
|
||||
#endif
|
||||
public:
|
||||
void SetENVMAP_MASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nENVMAP_MASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP_MASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetENVMAP_MASK( bool i )
|
||||
{
|
||||
m_nENVMAP_MASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP_MASK = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
shatteredglass_vs20_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP_MASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nENVMAP_MASK = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bENVMAP_MASK;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nENVMAP_MASK ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_shatteredglass_vs20 vsh_forgot_to_set_static_ENVMAP_MASK + 0
|
||||
class shatteredglass_vs20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
shatteredglass_vs20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_shatteredglass_vs20 vsh_forgot_to_set_dynamic_DOWATERFOG + 0
|
||||
@@ -0,0 +1,159 @@
|
||||
class teeth_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nINTRO;
|
||||
#ifdef _DEBUG
|
||||
bool m_bINTRO;
|
||||
#endif
|
||||
public:
|
||||
void SetINTRO( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nINTRO = i;
|
||||
#ifdef _DEBUG
|
||||
m_bINTRO = true;
|
||||
#endif
|
||||
}
|
||||
void SetINTRO( bool i )
|
||||
{
|
||||
m_nINTRO = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bINTRO = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHALF_LAMBERT;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHALF_LAMBERT;
|
||||
#endif
|
||||
public:
|
||||
void SetHALF_LAMBERT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHALF_LAMBERT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = true;
|
||||
#endif
|
||||
}
|
||||
void SetHALF_LAMBERT( bool i )
|
||||
{
|
||||
m_nHALF_LAMBERT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
teeth_Static_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bINTRO = false;
|
||||
#endif // _DEBUG
|
||||
m_nINTRO = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = false;
|
||||
#endif // _DEBUG
|
||||
m_nHALF_LAMBERT = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bINTRO && m_bHALF_LAMBERT;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 88 * m_nINTRO ) + ( 176 * m_nHALF_LAMBERT ) + 0;
|
||||
}
|
||||
};
|
||||
class teeth_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nLIGHT_COMBO;
|
||||
#ifdef _DEBUG
|
||||
bool m_bLIGHT_COMBO;
|
||||
#endif
|
||||
public:
|
||||
void SetLIGHT_COMBO( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 21 );
|
||||
m_nLIGHT_COMBO = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = true;
|
||||
#endif
|
||||
}
|
||||
void SetLIGHT_COMBO( bool i )
|
||||
{
|
||||
m_nLIGHT_COMBO = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
teeth_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = false;
|
||||
#endif // _DEBUG
|
||||
m_nLIGHT_COMBO = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bLIGHT_COMBO && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nLIGHT_COMBO ) + ( 44 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,82 @@
|
||||
class unlitgeneric_lightingonly_Static_Index
|
||||
{
|
||||
public:
|
||||
unlitgeneric_lightingonly_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class unlitgeneric_lightingonly_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
unlitgeneric_lightingonly_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,82 @@
|
||||
class unlittwotexture_Static_Index
|
||||
{
|
||||
public:
|
||||
unlittwotexture_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class unlittwotexture_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
unlittwotexture_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,82 @@
|
||||
class vertexlitgeneric_envmappedbumpmap_nolighting_Static_Index
|
||||
{
|
||||
public:
|
||||
vertexlitgeneric_envmappedbumpmap_nolighting_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class vertexlitgeneric_envmappedbumpmap_nolighting_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
vertexlitgeneric_envmappedbumpmap_nolighting_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
class vertexlitgeneric_envmappedbumpmap_nolighting_ps14_Static_Index
|
||||
{
|
||||
public:
|
||||
vertexlitgeneric_envmappedbumpmap_nolighting_ps14_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class vertexlitgeneric_envmappedbumpmap_nolighting_ps14_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
vertexlitgeneric_envmappedbumpmap_nolighting_ps14_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,82 @@
|
||||
class vertexlitgeneric_selfillumonly_Static_Index
|
||||
{
|
||||
public:
|
||||
vertexlitgeneric_selfillumonly_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class vertexlitgeneric_selfillumonly_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
vertexlitgeneric_selfillumonly_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,200 @@
|
||||
class vertexlitgeneric_vs11_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nHALF_LAMBERT;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHALF_LAMBERT;
|
||||
#endif
|
||||
public:
|
||||
void SetHALF_LAMBERT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHALF_LAMBERT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = true;
|
||||
#endif
|
||||
}
|
||||
void SetHALF_LAMBERT( bool i )
|
||||
{
|
||||
m_nHALF_LAMBERT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nENVMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bENVMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetENVMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nENVMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetENVMAP( bool i )
|
||||
{
|
||||
m_nENVMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nENVMAPCAMERASPACE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bENVMAPCAMERASPACE;
|
||||
#endif
|
||||
public:
|
||||
void SetENVMAPCAMERASPACE( int i )
|
||||
{
|
||||
}
|
||||
void SetENVMAPCAMERASPACE( bool i )
|
||||
{
|
||||
}
|
||||
private:
|
||||
int m_nENVMAPSPHERE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bENVMAPSPHERE;
|
||||
#endif
|
||||
public:
|
||||
void SetENVMAPSPHERE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nENVMAPSPHERE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAPSPHERE = true;
|
||||
#endif
|
||||
}
|
||||
void SetENVMAPSPHERE( bool i )
|
||||
{
|
||||
m_nENVMAPSPHERE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAPSPHERE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
vertexlitgeneric_vs11_Static_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bHALF_LAMBERT = false;
|
||||
#endif // _DEBUG
|
||||
m_nHALF_LAMBERT = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nENVMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAPCAMERASPACE = true;
|
||||
#endif // _DEBUG
|
||||
m_nENVMAPCAMERASPACE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAPSPHERE = false;
|
||||
#endif // _DEBUG
|
||||
m_nENVMAPSPHERE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bHALF_LAMBERT && m_bENVMAP && m_bENVMAPCAMERASPACE && m_bENVMAPSPHERE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 88 * m_nHALF_LAMBERT ) + ( 176 * m_nENVMAP ) + ( 352 * m_nENVMAPCAMERASPACE ) + ( 352 * m_nENVMAPSPHERE ) + 0;
|
||||
}
|
||||
};
|
||||
class vertexlitgeneric_vs11_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nLIGHT_COMBO;
|
||||
#ifdef _DEBUG
|
||||
bool m_bLIGHT_COMBO;
|
||||
#endif
|
||||
public:
|
||||
void SetLIGHT_COMBO( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 21 );
|
||||
m_nLIGHT_COMBO = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = true;
|
||||
#endif
|
||||
}
|
||||
void SetLIGHT_COMBO( bool i )
|
||||
{
|
||||
m_nLIGHT_COMBO = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
vertexlitgeneric_vs11_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_COMBO = false;
|
||||
#endif // _DEBUG
|
||||
m_nLIGHT_COMBO = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG && m_bLIGHT_COMBO && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nLIGHT_COMBO ) + ( 44 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,138 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// $USE_STATIC_CONTROL_FLOW && ( $NUM_LIGHTS > 0 )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
|
||||
#pragma once
|
||||
#include "shaderlib/cshader.h"
|
||||
class vertexlit_and_unlit_generic_bump_vs20_Static_Index
|
||||
{
|
||||
unsigned int m_nHALFLAMBERT : 2;
|
||||
unsigned int m_nUSE_WITH_2B : 2;
|
||||
unsigned int m_nUSE_STATIC_CONTROL_FLOW : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHALFLAMBERT : 1;
|
||||
bool m_bUSE_WITH_2B : 1;
|
||||
bool m_bUSE_STATIC_CONTROL_FLOW : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetHALFLAMBERT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHALFLAMBERT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHALFLAMBERT = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetUSE_WITH_2B( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_WITH_2B = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_WITH_2B = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetUSE_STATIC_CONTROL_FLOW( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_STATIC_CONTROL_FLOW = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_STATIC_CONTROL_FLOW = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
vertexlit_and_unlit_generic_bump_vs20_Static_Index( )
|
||||
{
|
||||
m_nHALFLAMBERT = 0;
|
||||
m_nUSE_WITH_2B = 0;
|
||||
m_nUSE_STATIC_CONTROL_FLOW = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHALFLAMBERT = false;
|
||||
m_bUSE_WITH_2B = false;
|
||||
m_bUSE_STATIC_CONTROL_FLOW = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bHALFLAMBERT && m_bUSE_WITH_2B && m_bUSE_STATIC_CONTROL_FLOW );
|
||||
return ( 24 * m_nHALFLAMBERT ) + ( 48 * m_nUSE_WITH_2B ) + ( 96 * m_nUSE_STATIC_CONTROL_FLOW ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderStaticTest_vertexlit_and_unlit_generic_bump_vs20 vsh_forgot_to_set_static_HALFLAMBERT + vsh_forgot_to_set_static_USE_WITH_2B + vsh_forgot_to_set_static_USE_STATIC_CONTROL_FLOW
|
||||
|
||||
|
||||
class vertexlit_and_unlit_generic_bump_vs20_Dynamic_Index
|
||||
{
|
||||
unsigned int m_nCOMPRESSED_VERTS : 2;
|
||||
unsigned int m_nDOWATERFOG : 2;
|
||||
unsigned int m_nSKINNING : 2;
|
||||
unsigned int m_nNUM_LIGHTS : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCOMPRESSED_VERTS : 1;
|
||||
bool m_bDOWATERFOG : 1;
|
||||
bool m_bSKINNING : 1;
|
||||
bool m_bNUM_LIGHTS : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetCOMPRESSED_VERTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCOMPRESSED_VERTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
vertexlit_and_unlit_generic_bump_vs20_Dynamic_Index( )
|
||||
{
|
||||
m_nCOMPRESSED_VERTS = 0;
|
||||
m_nDOWATERFOG = 0;
|
||||
m_nSKINNING = 0;
|
||||
m_nNUM_LIGHTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
m_bDOWATERFOG = false;
|
||||
m_bSKINNING = false;
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bCOMPRESSED_VERTS && m_bDOWATERFOG && m_bSKINNING && m_bNUM_LIGHTS );
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nDOWATERFOG ) + ( 4 * m_nSKINNING ) + ( 8 * m_nNUM_LIGHTS ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderDynamicTest_vertexlit_and_unlit_generic_bump_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_DOWATERFOG + vsh_forgot_to_set_dynamic_SKINNING + vsh_forgot_to_set_dynamic_NUM_LIGHTS
|
||||
|
||||
@@ -0,0 +1,289 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// $USE_STATIC_CONTROL_FLOW && ( $NUM_LIGHTS > 0 )
|
||||
// ($SEPARATE_DETAIL_UVS) && ($SEAMLESS_DETAIL)
|
||||
// ($DONT_GAMMA_CONVERT_VERTEX_COLOR && ( ! $VERTEXCOLOR ) )
|
||||
// ($TREESWAY) && ($MORPHING)
|
||||
// ($TREESWAY) && ($TESSELLATION)
|
||||
// ( $TREESWAY ) && ( $SEAMLESS_DETAIL || $SEAMLESS_BASE )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
|
||||
#pragma once
|
||||
#include "shaderlib/cshader.h"
|
||||
class vertexlit_and_unlit_generic_vs20_Static_Index
|
||||
{
|
||||
unsigned int m_nVERTEXCOLOR : 2;
|
||||
unsigned int m_nCUBEMAP : 2;
|
||||
unsigned int m_nHALFLAMBERT : 2;
|
||||
unsigned int m_nFLASHLIGHT : 2;
|
||||
unsigned int m_nSEAMLESS_BASE : 2;
|
||||
unsigned int m_nSEAMLESS_DETAIL : 2;
|
||||
unsigned int m_nSEPARATE_DETAIL_UVS : 2;
|
||||
unsigned int m_nUSE_STATIC_CONTROL_FLOW : 2;
|
||||
unsigned int m_nDONT_GAMMA_CONVERT_VERTEX_COLOR : 2;
|
||||
unsigned int m_nTREESWAY : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bVERTEXCOLOR : 1;
|
||||
bool m_bCUBEMAP : 1;
|
||||
bool m_bHALFLAMBERT : 1;
|
||||
bool m_bFLASHLIGHT : 1;
|
||||
bool m_bSEAMLESS_BASE : 1;
|
||||
bool m_bSEAMLESS_DETAIL : 1;
|
||||
bool m_bSEPARATE_DETAIL_UVS : 1;
|
||||
bool m_bUSE_STATIC_CONTROL_FLOW : 1;
|
||||
bool m_bDONT_GAMMA_CONVERT_VERTEX_COLOR : 1;
|
||||
bool m_bTREESWAY : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetVERTEXCOLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nVERTEXCOLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetCUBEMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCUBEMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCUBEMAP = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetHALFLAMBERT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHALFLAMBERT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHALFLAMBERT = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetFLASHLIGHT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLASHLIGHT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetSEAMLESS_BASE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSEAMLESS_BASE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSEAMLESS_BASE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetSEAMLESS_DETAIL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSEAMLESS_DETAIL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSEAMLESS_DETAIL = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetSEPARATE_DETAIL_UVS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSEPARATE_DETAIL_UVS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSEPARATE_DETAIL_UVS = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetUSE_STATIC_CONTROL_FLOW( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_STATIC_CONTROL_FLOW = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_STATIC_CONTROL_FLOW = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetDONT_GAMMA_CONVERT_VERTEX_COLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDONT_GAMMA_CONVERT_VERTEX_COLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDONT_GAMMA_CONVERT_VERTEX_COLOR = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetTREESWAY( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nTREESWAY = i;
|
||||
#ifdef _DEBUG
|
||||
m_bTREESWAY = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
vertexlit_and_unlit_generic_vs20_Static_Index( )
|
||||
{
|
||||
m_nVERTEXCOLOR = 0;
|
||||
m_nCUBEMAP = 0;
|
||||
m_nHALFLAMBERT = 0;
|
||||
m_nFLASHLIGHT = 0;
|
||||
m_nSEAMLESS_BASE = 0;
|
||||
m_nSEAMLESS_DETAIL = 0;
|
||||
m_nSEPARATE_DETAIL_UVS = 0;
|
||||
m_nUSE_STATIC_CONTROL_FLOW = 0;
|
||||
m_nDONT_GAMMA_CONVERT_VERTEX_COLOR = 0;
|
||||
m_nTREESWAY = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = false;
|
||||
m_bCUBEMAP = false;
|
||||
m_bHALFLAMBERT = false;
|
||||
m_bFLASHLIGHT = false;
|
||||
m_bSEAMLESS_BASE = false;
|
||||
m_bSEAMLESS_DETAIL = false;
|
||||
m_bSEPARATE_DETAIL_UVS = false;
|
||||
m_bUSE_STATIC_CONTROL_FLOW = false;
|
||||
m_bDONT_GAMMA_CONVERT_VERTEX_COLOR = false;
|
||||
m_bTREESWAY = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bVERTEXCOLOR && m_bCUBEMAP && m_bHALFLAMBERT && m_bFLASHLIGHT && m_bSEAMLESS_BASE && m_bSEAMLESS_DETAIL && m_bSEPARATE_DETAIL_UVS && m_bUSE_STATIC_CONTROL_FLOW && m_bDONT_GAMMA_CONVERT_VERTEX_COLOR && m_bTREESWAY );
|
||||
AssertMsg( !( m_nSEPARATE_DETAIL_UVS && m_nSEAMLESS_DETAIL ), "Invalid combo combination ( SEPARATE_DETAIL_UVS && SEAMLESS_DETAIL )" );
|
||||
AssertMsg( !( m_nDONT_GAMMA_CONVERT_VERTEX_COLOR && !m_nVERTEXCOLOR ), "Invalid combo combination ( DONT_GAMMA_CONVERT_VERTEX_COLOR && !VERTEXCOLOR )" );
|
||||
AssertMsg( !( m_nTREESWAY && ( m_nSEAMLESS_DETAIL || m_nSEAMLESS_BASE ) ), "Invalid combo combination ( TREESWAY && ( SEAMLESS_DETAIL || SEAMLESS_BASE ) )" );
|
||||
return ( 384 * m_nVERTEXCOLOR ) + ( 768 * m_nCUBEMAP ) + ( 1536 * m_nHALFLAMBERT ) + ( 3072 * m_nFLASHLIGHT ) + ( 6144 * m_nSEAMLESS_BASE ) + ( 12288 * m_nSEAMLESS_DETAIL ) + ( 24576 * m_nSEPARATE_DETAIL_UVS ) + ( 49152 * m_nUSE_STATIC_CONTROL_FLOW ) + ( 98304 * m_nDONT_GAMMA_CONVERT_VERTEX_COLOR ) + ( 196608 * m_nTREESWAY ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderStaticTest_vertexlit_and_unlit_generic_vs20 vsh_forgot_to_set_static_VERTEXCOLOR + vsh_forgot_to_set_static_CUBEMAP + vsh_forgot_to_set_static_HALFLAMBERT + vsh_forgot_to_set_static_FLASHLIGHT + vsh_forgot_to_set_static_SEAMLESS_BASE + vsh_forgot_to_set_static_SEAMLESS_DETAIL + vsh_forgot_to_set_static_SEPARATE_DETAIL_UVS + vsh_forgot_to_set_static_USE_STATIC_CONTROL_FLOW + vsh_forgot_to_set_static_DONT_GAMMA_CONVERT_VERTEX_COLOR + vsh_forgot_to_set_static_TREESWAY
|
||||
|
||||
|
||||
class vertexlit_and_unlit_generic_vs20_Dynamic_Index
|
||||
{
|
||||
unsigned int m_nCOMPRESSED_VERTS : 2;
|
||||
unsigned int m_nDYNAMIC_LIGHT : 2;
|
||||
unsigned int m_nSTATIC_LIGHT_VERTEX : 2;
|
||||
unsigned int m_nSTATIC_LIGHT_LIGHTMAP : 2;
|
||||
unsigned int m_nDOWATERFOG : 2;
|
||||
unsigned int m_nSKINNING : 2;
|
||||
unsigned int m_nLIGHTING_PREVIEW : 2;
|
||||
unsigned int m_nNUM_LIGHTS : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCOMPRESSED_VERTS : 1;
|
||||
bool m_bDYNAMIC_LIGHT : 1;
|
||||
bool m_bSTATIC_LIGHT_VERTEX : 1;
|
||||
bool m_bSTATIC_LIGHT_LIGHTMAP : 1;
|
||||
bool m_bDOWATERFOG : 1;
|
||||
bool m_bSKINNING : 1;
|
||||
bool m_bLIGHTING_PREVIEW : 1;
|
||||
bool m_bNUM_LIGHTS : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetCOMPRESSED_VERTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCOMPRESSED_VERTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetDYNAMIC_LIGHT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDYNAMIC_LIGHT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDYNAMIC_LIGHT = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetSTATIC_LIGHT_VERTEX( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSTATIC_LIGHT_VERTEX = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSTATIC_LIGHT_VERTEX = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetSTATIC_LIGHT_LIGHTMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSTATIC_LIGHT_LIGHTMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSTATIC_LIGHT_LIGHTMAP = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetLIGHTING_PREVIEW( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nLIGHTING_PREVIEW = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTING_PREVIEW = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
vertexlit_and_unlit_generic_vs20_Dynamic_Index( )
|
||||
{
|
||||
m_nCOMPRESSED_VERTS = 0;
|
||||
m_nDYNAMIC_LIGHT = 0;
|
||||
m_nSTATIC_LIGHT_VERTEX = 0;
|
||||
m_nSTATIC_LIGHT_LIGHTMAP = 0;
|
||||
m_nDOWATERFOG = 0;
|
||||
m_nSKINNING = 0;
|
||||
m_nLIGHTING_PREVIEW = 0;
|
||||
m_nNUM_LIGHTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
m_bDYNAMIC_LIGHT = false;
|
||||
m_bSTATIC_LIGHT_VERTEX = false;
|
||||
m_bSTATIC_LIGHT_LIGHTMAP = false;
|
||||
m_bDOWATERFOG = false;
|
||||
m_bSKINNING = false;
|
||||
m_bLIGHTING_PREVIEW = false;
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bCOMPRESSED_VERTS && m_bDYNAMIC_LIGHT && m_bSTATIC_LIGHT_VERTEX && m_bSTATIC_LIGHT_LIGHTMAP && m_bDOWATERFOG && m_bSKINNING && m_bLIGHTING_PREVIEW && m_bNUM_LIGHTS );
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nDYNAMIC_LIGHT ) + ( 4 * m_nSTATIC_LIGHT_VERTEX ) + ( 8 * m_nSTATIC_LIGHT_LIGHTMAP ) + ( 16 * m_nDOWATERFOG ) + ( 32 * m_nSKINNING ) + ( 64 * m_nLIGHTING_PREVIEW ) + ( 128 * m_nNUM_LIGHTS ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderDynamicTest_vertexlit_and_unlit_generic_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_DYNAMIC_LIGHT + vsh_forgot_to_set_dynamic_STATIC_LIGHT_VERTEX + vsh_forgot_to_set_dynamic_STATIC_LIGHT_LIGHTMAP + vsh_forgot_to_set_dynamic_DOWATERFOG + vsh_forgot_to_set_dynamic_SKINNING + vsh_forgot_to_set_dynamic_LIGHTING_PREVIEW + vsh_forgot_to_set_dynamic_NUM_LIGHTS
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
class watercheappervertexfresnel_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
watercheappervertexfresnel_vs11_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class watercheappervertexfresnel_vs11_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
watercheappervertexfresnel_vs11_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,237 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class watercheap_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nMULTITEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMULTITEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetMULTITEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMULTITEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetMULTITEXTURE( bool i )
|
||||
{
|
||||
m_nMULTITEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFRESNEL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFRESNEL;
|
||||
#endif
|
||||
public:
|
||||
void SetFRESNEL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFRESNEL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNEL = true;
|
||||
#endif
|
||||
}
|
||||
void SetFRESNEL( bool i )
|
||||
{
|
||||
m_nFRESNEL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNEL = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetBLEND( bool i )
|
||||
{
|
||||
m_nBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBLEND = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nREFRACTALPHA;
|
||||
#ifdef _DEBUG
|
||||
bool m_bREFRACTALPHA;
|
||||
#endif
|
||||
public:
|
||||
void SetREFRACTALPHA( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nREFRACTALPHA = i;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
void SetREFRACTALPHA( bool i )
|
||||
{
|
||||
m_nREFRACTALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHDRTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHDRTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetHDRTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nHDRTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetHDRTYPE( bool i )
|
||||
{
|
||||
m_nHDRTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nNORMAL_DECODE_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNORMAL_DECODE_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetNORMAL_DECODE_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nNORMAL_DECODE_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetNORMAL_DECODE_MODE( bool i )
|
||||
{
|
||||
m_nNORMAL_DECODE_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
watercheap_ps20_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nMULTITEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNEL = false;
|
||||
#endif // _DEBUG
|
||||
m_nFRESNEL = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBLEND = false;
|
||||
#endif // _DEBUG
|
||||
m_nBLEND = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nREFRACTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nHDRTYPE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nNORMAL_DECODE_MODE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bMULTITEXTURE && m_bFRESNEL && m_bBLEND && m_bREFRACTALPHA && m_bHDRTYPE && m_bNORMAL_DECODE_MODE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 4 * m_nMULTITEXTURE ) + ( 8 * m_nFRESNEL ) + ( 16 * m_nBLEND ) + ( 32 * m_nREFRACTALPHA ) + ( 64 * m_nHDRTYPE ) + ( 192 * m_nNORMAL_DECODE_MODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_watercheap_ps20 psh_forgot_to_set_static_MULTITEXTURE + psh_forgot_to_set_static_FRESNEL + psh_forgot_to_set_static_BLEND + psh_forgot_to_set_static_REFRACTALPHA + psh_forgot_to_set_static_HDRTYPE + psh_forgot_to_set_static_NORMAL_DECODE_MODE + 0
|
||||
class watercheap_ps20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nHDRENABLED;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHDRENABLED;
|
||||
#endif
|
||||
public:
|
||||
void SetHDRENABLED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHDRENABLED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = true;
|
||||
#endif
|
||||
}
|
||||
void SetHDRENABLED( bool i )
|
||||
{
|
||||
m_nHDRENABLED = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
watercheap_ps20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = false;
|
||||
#endif // _DEBUG
|
||||
m_nHDRENABLED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bHDRENABLED && m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nHDRENABLED ) + ( 2 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_watercheap_ps20 psh_forgot_to_set_dynamic_HDRENABLED + psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0
|
||||
@@ -0,0 +1,164 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $HDRTYPE && defined $HDRENABLED && !$HDRTYPE && $HDRENABLED
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// defined $LIGHTING_PREVIEW && defined $HDRTYPE && $LIGHTING_PREVIEW && $HDRTYPE != 0
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
// ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
|
||||
|
||||
#pragma once
|
||||
#include "shaderlib/cshader.h"
|
||||
class watercheap_ps20b_Static_Index
|
||||
{
|
||||
unsigned int m_nCONVERT_TO_SRGB : 2;
|
||||
unsigned int m_nMULTITEXTURE : 2;
|
||||
unsigned int m_nFRESNEL : 2;
|
||||
unsigned int m_nBLEND : 2;
|
||||
unsigned int m_nREFRACTALPHA : 2;
|
||||
unsigned int m_nHDRTYPE : 2;
|
||||
unsigned int m_nNORMAL_DECODE_MODE : 1;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMULTITEXTURE : 1;
|
||||
bool m_bFRESNEL : 1;
|
||||
bool m_bBLEND : 1;
|
||||
bool m_bREFRACTALPHA : 1;
|
||||
bool m_bHDRTYPE : 1;
|
||||
bool m_bNORMAL_DECODE_MODE : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
}
|
||||
|
||||
void SetMULTITEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMULTITEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetFRESNEL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFRESNEL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNEL = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBLEND = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetREFRACTALPHA( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nREFRACTALPHA = i;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACTALPHA = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetHDRTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nHDRTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetNORMAL_DECODE_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nNORMAL_DECODE_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
watercheap_ps20b_Static_Index( )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
m_nMULTITEXTURE = 0;
|
||||
m_nFRESNEL = 0;
|
||||
m_nBLEND = 0;
|
||||
m_nREFRACTALPHA = 0;
|
||||
m_nHDRTYPE = 0;
|
||||
m_nNORMAL_DECODE_MODE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = false;
|
||||
m_bFRESNEL = false;
|
||||
m_bBLEND = false;
|
||||
m_bREFRACTALPHA = false;
|
||||
m_bHDRTYPE = false;
|
||||
m_bNORMAL_DECODE_MODE = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bMULTITEXTURE && m_bFRESNEL && m_bBLEND && m_bREFRACTALPHA && m_bHDRTYPE && m_bNORMAL_DECODE_MODE );
|
||||
return ( 6 * m_nCONVERT_TO_SRGB ) + ( 12 * m_nMULTITEXTURE ) + ( 24 * m_nFRESNEL ) + ( 48 * m_nBLEND ) + ( 96 * m_nREFRACTALPHA ) + ( 192 * m_nHDRTYPE ) + ( 576 * m_nNORMAL_DECODE_MODE ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderStaticTest_watercheap_ps20b psh_forgot_to_set_static_MULTITEXTURE + psh_forgot_to_set_static_FRESNEL + psh_forgot_to_set_static_BLEND + psh_forgot_to_set_static_REFRACTALPHA + psh_forgot_to_set_static_HDRTYPE + psh_forgot_to_set_static_NORMAL_DECODE_MODE
|
||||
|
||||
|
||||
class watercheap_ps20b_Dynamic_Index
|
||||
{
|
||||
unsigned int m_nHDRENABLED : 2;
|
||||
unsigned int m_nPIXELFOGTYPE : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHDRENABLED : 1;
|
||||
bool m_bPIXELFOGTYPE : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetHDRENABLED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHDRENABLED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
watercheap_ps20b_Dynamic_Index( )
|
||||
{
|
||||
m_nHDRENABLED = 0;
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = false;
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bHDRENABLED && m_bPIXELFOGTYPE );
|
||||
return ( 1 * m_nHDRENABLED ) + ( 2 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderDynamicTest_watercheap_ps20b psh_forgot_to_set_dynamic_HDRENABLED + psh_forgot_to_set_dynamic_PIXELFOGTYPE
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
class watercheap_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
watercheap_vs11_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class watercheap_vs11_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
watercheap_vs11_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class watercheap_vs14_Static_Index
|
||||
{
|
||||
public:
|
||||
watercheap_vs14_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class watercheap_vs14_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
watercheap_vs14_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,54 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
|
||||
#pragma once
|
||||
#include "shaderlib/cshader.h"
|
||||
class watercheap_vs20_Static_Index
|
||||
{
|
||||
unsigned int m_nBLEND : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBLEND : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBLEND = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
watercheap_vs20_Static_Index( )
|
||||
{
|
||||
m_nBLEND = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBLEND = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bBLEND );
|
||||
return ( 1 * m_nBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderStaticTest_watercheap_vs20 vsh_forgot_to_set_static_BLEND
|
||||
|
||||
|
||||
class watercheap_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
watercheap_vs20_Dynamic_Index( )
|
||||
{
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderDynamicTest_watercheap_vs20 1
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
class water_ps14_Static_Index
|
||||
{
|
||||
public:
|
||||
water_ps14_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class water_ps14_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
water_ps14_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,212 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class water_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nBASETEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASETEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetBASETEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASETEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASETEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetBASETEXTURE( bool i )
|
||||
{
|
||||
m_nBASETEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASETEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nMULTITEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMULTITEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetMULTITEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMULTITEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetMULTITEXTURE( bool i )
|
||||
{
|
||||
m_nMULTITEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nREFLECT;
|
||||
#ifdef _DEBUG
|
||||
bool m_bREFLECT;
|
||||
#endif
|
||||
public:
|
||||
void SetREFLECT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nREFLECT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bREFLECT = true;
|
||||
#endif
|
||||
}
|
||||
void SetREFLECT( bool i )
|
||||
{
|
||||
m_nREFLECT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bREFLECT = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nREFRACT;
|
||||
#ifdef _DEBUG
|
||||
bool m_bREFRACT;
|
||||
#endif
|
||||
public:
|
||||
void SetREFRACT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nREFRACT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACT = true;
|
||||
#endif
|
||||
}
|
||||
void SetREFRACT( bool i )
|
||||
{
|
||||
m_nREFRACT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACT = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nABOVEWATER;
|
||||
#ifdef _DEBUG
|
||||
bool m_bABOVEWATER;
|
||||
#endif
|
||||
public:
|
||||
void SetABOVEWATER( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nABOVEWATER = i;
|
||||
#ifdef _DEBUG
|
||||
m_bABOVEWATER = true;
|
||||
#endif
|
||||
}
|
||||
void SetABOVEWATER( bool i )
|
||||
{
|
||||
m_nABOVEWATER = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bABOVEWATER = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nNORMAL_DECODE_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNORMAL_DECODE_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetNORMAL_DECODE_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nNORMAL_DECODE_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetNORMAL_DECODE_MODE( bool i )
|
||||
{
|
||||
m_nNORMAL_DECODE_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
water_ps20_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bBASETEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASETEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nMULTITEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bREFLECT = false;
|
||||
#endif // _DEBUG
|
||||
m_nREFLECT = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bREFRACT = false;
|
||||
#endif // _DEBUG
|
||||
m_nREFRACT = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bABOVEWATER = false;
|
||||
#endif // _DEBUG
|
||||
m_nABOVEWATER = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMAL_DECODE_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nNORMAL_DECODE_MODE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bBASETEXTURE && m_bMULTITEXTURE && m_bREFLECT && m_bREFRACT && m_bABOVEWATER && m_bNORMAL_DECODE_MODE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nBASETEXTURE ) + ( 4 * m_nMULTITEXTURE ) + ( 8 * m_nREFLECT ) + ( 16 * m_nREFRACT ) + ( 32 * m_nABOVEWATER ) + ( 64 * m_nNORMAL_DECODE_MODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_water_ps20 psh_forgot_to_set_static_BASETEXTURE + psh_forgot_to_set_static_MULTITEXTURE + psh_forgot_to_set_static_REFLECT + psh_forgot_to_set_static_REFRACT + psh_forgot_to_set_static_ABOVEWATER + psh_forgot_to_set_static_NORMAL_DECODE_MODE + 0
|
||||
class water_ps20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
water_ps20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_water_ps20 psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0
|
||||
@@ -0,0 +1,57 @@
|
||||
class water_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
water_vs11_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class water_vs11_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
water_vs11_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,69 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// $MULTITEXTURE && $BASETEXTURE
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
|
||||
#pragma once
|
||||
#include "shaderlib/cshader.h"
|
||||
class water_vs20_Static_Index
|
||||
{
|
||||
unsigned int m_nBASETEXTURE : 2;
|
||||
unsigned int m_nMULTITEXTURE : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASETEXTURE : 1;
|
||||
bool m_bMULTITEXTURE : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetBASETEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASETEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASETEXTURE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetMULTITEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMULTITEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
water_vs20_Static_Index( )
|
||||
{
|
||||
m_nBASETEXTURE = 0;
|
||||
m_nMULTITEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASETEXTURE = false;
|
||||
m_bMULTITEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bBASETEXTURE && m_bMULTITEXTURE );
|
||||
AssertMsg( !( m_nMULTITEXTURE && m_nBASETEXTURE ), "Invalid combo combination ( MULTITEXTURE && BASETEXTURE )" );
|
||||
return ( 1 * m_nBASETEXTURE ) + ( 2 * m_nMULTITEXTURE ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderStaticTest_water_vs20 vsh_forgot_to_set_static_BASETEXTURE + vsh_forgot_to_set_static_MULTITEXTURE
|
||||
|
||||
|
||||
class water_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
water_vs20_Dynamic_Index( )
|
||||
{
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderDynamicTest_water_vs20 1
|
||||
|
||||
@@ -0,0 +1,287 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class worldtwotextureblend_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nDETAILTEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDETAILTEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetDETAILTEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDETAILTEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDETAILTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetDETAILTEXTURE( bool i )
|
||||
{
|
||||
m_nDETAILTEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDETAILTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBUMPMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBUMPMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetBUMPMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBUMPMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetBUMPMAP( bool i )
|
||||
{
|
||||
m_nBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nVERTEXCOLOR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bVERTEXCOLOR;
|
||||
#endif
|
||||
public:
|
||||
void SetVERTEXCOLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nVERTEXCOLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
void SetVERTEXCOLOR( bool i )
|
||||
{
|
||||
m_nVERTEXCOLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSELFILLUM;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSELFILLUM;
|
||||
#endif
|
||||
public:
|
||||
void SetSELFILLUM( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSELFILLUM = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSELFILLUM = true;
|
||||
#endif
|
||||
}
|
||||
void SetSELFILLUM( bool i )
|
||||
{
|
||||
m_nSELFILLUM = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSELFILLUM = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDIFFUSEBUMPMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDIFFUSEBUMPMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetDIFFUSEBUMPMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDIFFUSEBUMPMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDIFFUSEBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetDIFFUSEBUMPMAP( bool i )
|
||||
{
|
||||
m_nDIFFUSEBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDIFFUSEBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDETAIL_ALPHA_MASK_BASE_TEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDETAIL_ALPHA_MASK_BASE_TEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetDETAIL_ALPHA_MASK_BASE_TEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDETAIL_ALPHA_MASK_BASE_TEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDETAIL_ALPHA_MASK_BASE_TEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetDETAIL_ALPHA_MASK_BASE_TEXTURE( bool i )
|
||||
{
|
||||
m_nDETAIL_ALPHA_MASK_BASE_TEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDETAIL_ALPHA_MASK_BASE_TEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLASHLIGHT;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLASHLIGHT;
|
||||
#endif
|
||||
public:
|
||||
void SetFLASHLIGHT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLASHLIGHT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLASHLIGHT( bool i )
|
||||
{
|
||||
m_nFLASHLIGHT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSEAMLESS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSEAMLESS;
|
||||
#endif
|
||||
public:
|
||||
void SetSEAMLESS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSEAMLESS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSEAMLESS = true;
|
||||
#endif
|
||||
}
|
||||
void SetSEAMLESS( bool i )
|
||||
{
|
||||
m_nSEAMLESS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSEAMLESS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
worldtwotextureblend_ps20_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDETAILTEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nDETAILTEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nBUMPMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = false;
|
||||
#endif // _DEBUG
|
||||
m_nVERTEXCOLOR = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSELFILLUM = false;
|
||||
#endif // _DEBUG
|
||||
m_nSELFILLUM = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDIFFUSEBUMPMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nDIFFUSEBUMPMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDETAIL_ALPHA_MASK_BASE_TEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nDETAIL_ALPHA_MASK_BASE_TEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLASHLIGHT = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSEAMLESS = false;
|
||||
#endif // _DEBUG
|
||||
m_nSEAMLESS = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bDETAILTEXTURE && m_bBUMPMAP && m_bVERTEXCOLOR && m_bSELFILLUM && m_bDIFFUSEBUMPMAP && m_bDETAIL_ALPHA_MASK_BASE_TEXTURE && m_bFLASHLIGHT && m_bSEAMLESS;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 4 * m_nDETAILTEXTURE ) + ( 8 * m_nBUMPMAP ) + ( 16 * m_nVERTEXCOLOR ) + ( 32 * m_nSELFILLUM ) + ( 64 * m_nDIFFUSEBUMPMAP ) + ( 128 * m_nDETAIL_ALPHA_MASK_BASE_TEXTURE ) + ( 256 * m_nFLASHLIGHT ) + ( 512 * m_nSEAMLESS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_worldtwotextureblend_ps20 psh_forgot_to_set_static_DETAILTEXTURE + psh_forgot_to_set_static_BUMPMAP + psh_forgot_to_set_static_VERTEXCOLOR + psh_forgot_to_set_static_SELFILLUM + psh_forgot_to_set_static_DIFFUSEBUMPMAP + psh_forgot_to_set_static_DETAIL_ALPHA_MASK_BASE_TEXTURE + psh_forgot_to_set_static_FLASHLIGHT + psh_forgot_to_set_static_SEAMLESS + 0
|
||||
class worldtwotextureblend_ps20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nWRITEWATERFOGTODESTALPHA;
|
||||
#ifdef _DEBUG
|
||||
bool m_bWRITEWATERFOGTODESTALPHA;
|
||||
#endif
|
||||
public:
|
||||
void SetWRITEWATERFOGTODESTALPHA( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nWRITEWATERFOGTODESTALPHA = i;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
void SetWRITEWATERFOGTODESTALPHA( bool i )
|
||||
{
|
||||
m_nWRITEWATERFOGTODESTALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
worldtwotextureblend_ps20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITEWATERFOGTODESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bWRITEWATERFOGTODESTALPHA && m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nWRITEWATERFOGTODESTALPHA ) + ( 2 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_worldtwotextureblend_ps20 psh_forgot_to_set_dynamic_WRITEWATERFOGTODESTALPHA + psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0
|
||||
@@ -0,0 +1,387 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class worldtwotextureblend_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDETAILTEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDETAILTEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetDETAILTEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDETAILTEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDETAILTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetDETAILTEXTURE( bool i )
|
||||
{
|
||||
m_nDETAILTEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDETAILTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBUMPMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBUMPMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetBUMPMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBUMPMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetBUMPMAP( bool i )
|
||||
{
|
||||
m_nBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nVERTEXCOLOR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bVERTEXCOLOR;
|
||||
#endif
|
||||
public:
|
||||
void SetVERTEXCOLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nVERTEXCOLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
void SetVERTEXCOLOR( bool i )
|
||||
{
|
||||
m_nVERTEXCOLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSELFILLUM;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSELFILLUM;
|
||||
#endif
|
||||
public:
|
||||
void SetSELFILLUM( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSELFILLUM = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSELFILLUM = true;
|
||||
#endif
|
||||
}
|
||||
void SetSELFILLUM( bool i )
|
||||
{
|
||||
m_nSELFILLUM = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSELFILLUM = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDIFFUSEBUMPMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDIFFUSEBUMPMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetDIFFUSEBUMPMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDIFFUSEBUMPMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDIFFUSEBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetDIFFUSEBUMPMAP( bool i )
|
||||
{
|
||||
m_nDIFFUSEBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDIFFUSEBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDETAIL_ALPHA_MASK_BASE_TEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDETAIL_ALPHA_MASK_BASE_TEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetDETAIL_ALPHA_MASK_BASE_TEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDETAIL_ALPHA_MASK_BASE_TEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDETAIL_ALPHA_MASK_BASE_TEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetDETAIL_ALPHA_MASK_BASE_TEXTURE( bool i )
|
||||
{
|
||||
m_nDETAIL_ALPHA_MASK_BASE_TEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDETAIL_ALPHA_MASK_BASE_TEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLASHLIGHT;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLASHLIGHT;
|
||||
#endif
|
||||
public:
|
||||
void SetFLASHLIGHT( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLASHLIGHT = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLASHLIGHT( bool i )
|
||||
{
|
||||
m_nFLASHLIGHT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSEAMLESS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSEAMLESS;
|
||||
#endif
|
||||
public:
|
||||
void SetSEAMLESS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSEAMLESS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSEAMLESS = true;
|
||||
#endif
|
||||
}
|
||||
void SetSEAMLESS( bool i )
|
||||
{
|
||||
m_nSEAMLESS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSEAMLESS = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLASHLIGHTDEPTHFILTERMODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLASHLIGHTDEPTHFILTERMODE;
|
||||
#endif
|
||||
public:
|
||||
void SetFLASHLIGHTDEPTHFILTERMODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nFLASHLIGHTDEPTHFILTERMODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTDEPTHFILTERMODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLASHLIGHTDEPTHFILTERMODE( bool i )
|
||||
{
|
||||
m_nFLASHLIGHTDEPTHFILTERMODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTDEPTHFILTERMODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
worldtwotextureblend_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
#ifdef _DEBUG
|
||||
m_bDETAILTEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nDETAILTEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nBUMPMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXCOLOR = false;
|
||||
#endif // _DEBUG
|
||||
m_nVERTEXCOLOR = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSELFILLUM = false;
|
||||
#endif // _DEBUG
|
||||
m_nSELFILLUM = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDIFFUSEBUMPMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nDIFFUSEBUMPMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDETAIL_ALPHA_MASK_BASE_TEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nDETAIL_ALPHA_MASK_BASE_TEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLASHLIGHT = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSEAMLESS = false;
|
||||
#endif // _DEBUG
|
||||
m_nSEAMLESS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTDEPTHFILTERMODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLASHLIGHTDEPTHFILTERMODE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB && m_bDETAILTEXTURE && m_bBUMPMAP && m_bVERTEXCOLOR && m_bSELFILLUM && m_bDIFFUSEBUMPMAP && m_bDETAIL_ALPHA_MASK_BASE_TEXTURE && m_bFLASHLIGHT && m_bSEAMLESS && m_bFLASHLIGHTDEPTHFILTERMODE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 16 * m_nCONVERT_TO_SRGB ) + ( 32 * m_nDETAILTEXTURE ) + ( 64 * m_nBUMPMAP ) + ( 128 * m_nVERTEXCOLOR ) + ( 256 * m_nSELFILLUM ) + ( 512 * m_nDIFFUSEBUMPMAP ) + ( 1024 * m_nDETAIL_ALPHA_MASK_BASE_TEXTURE ) + ( 2048 * m_nFLASHLIGHT ) + ( 4096 * m_nSEAMLESS ) + ( 8192 * m_nFLASHLIGHTDEPTHFILTERMODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_worldtwotextureblend_ps20b psh_forgot_to_set_static_DETAILTEXTURE + psh_forgot_to_set_static_BUMPMAP + psh_forgot_to_set_static_VERTEXCOLOR + psh_forgot_to_set_static_SELFILLUM + psh_forgot_to_set_static_DIFFUSEBUMPMAP + psh_forgot_to_set_static_DETAIL_ALPHA_MASK_BASE_TEXTURE + psh_forgot_to_set_static_FLASHLIGHT + psh_forgot_to_set_static_SEAMLESS + psh_forgot_to_set_static_FLASHLIGHTDEPTHFILTERMODE + 0
|
||||
class worldtwotextureblend_ps20b_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nWRITEWATERFOGTODESTALPHA;
|
||||
#ifdef _DEBUG
|
||||
bool m_bWRITEWATERFOGTODESTALPHA;
|
||||
#endif
|
||||
public:
|
||||
void SetWRITEWATERFOGTODESTALPHA( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nWRITEWATERFOGTODESTALPHA = i;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
void SetWRITEWATERFOGTODESTALPHA( bool i )
|
||||
{
|
||||
m_nWRITEWATERFOGTODESTALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nWRITE_DEPTH_TO_DESTALPHA;
|
||||
#ifdef _DEBUG
|
||||
bool m_bWRITE_DEPTH_TO_DESTALPHA;
|
||||
#endif
|
||||
public:
|
||||
void SetWRITE_DEPTH_TO_DESTALPHA( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = i;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
void SetWRITE_DEPTH_TO_DESTALPHA( bool i )
|
||||
{
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLASHLIGHTSHADOWS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLASHLIGHTSHADOWS;
|
||||
#endif
|
||||
public:
|
||||
void SetFLASHLIGHTSHADOWS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLASHLIGHTSHADOWS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTSHADOWS = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLASHLIGHTSHADOWS( bool i )
|
||||
{
|
||||
m_nFLASHLIGHTSHADOWS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTSHADOWS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
worldtwotextureblend_ps20b_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITEWATERFOGTODESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTSHADOWS = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLASHLIGHTSHADOWS = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bWRITEWATERFOGTODESTALPHA && m_bPIXELFOGTYPE && m_bWRITE_DEPTH_TO_DESTALPHA && m_bFLASHLIGHTSHADOWS;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nWRITEWATERFOGTODESTALPHA ) + ( 2 * m_nPIXELFOGTYPE ) + ( 4 * m_nWRITE_DEPTH_TO_DESTALPHA ) + ( 8 * m_nFLASHLIGHTSHADOWS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_worldtwotextureblend_ps20b psh_forgot_to_set_dynamic_WRITEWATERFOGTODESTALPHA + psh_forgot_to_set_dynamic_PIXELFOGTYPE + psh_forgot_to_set_dynamic_WRITE_DEPTH_TO_DESTALPHA + psh_forgot_to_set_dynamic_FLASHLIGHTSHADOWS + 0
|
||||
@@ -0,0 +1,57 @@
|
||||
class worldvertexalpha_Static_Index
|
||||
{
|
||||
public:
|
||||
worldvertexalpha_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class worldvertexalpha_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
worldvertexalpha_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,57 @@
|
||||
class worldvertextransition_Static_Index
|
||||
{
|
||||
public:
|
||||
worldvertextransition_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class worldvertextransition_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
worldvertextransition_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class accumbuff4sample_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
accumbuff4sample_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_accumbuff4sample_ps20 0
|
||||
class accumbuff4sample_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
accumbuff4sample_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_accumbuff4sample_ps20 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class accumbuff4sample_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
accumbuff4sample_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_accumbuff4sample_ps20b 0
|
||||
class accumbuff4sample_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
accumbuff4sample_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_accumbuff4sample_ps20b 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class accumbuff5sample_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
accumbuff5sample_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_accumbuff5sample_ps20 0
|
||||
class accumbuff5sample_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
accumbuff5sample_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_accumbuff5sample_ps20 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class accumbuff5sample_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
accumbuff5sample_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_accumbuff5sample_ps20b 0
|
||||
class accumbuff5sample_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
accumbuff5sample_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_accumbuff5sample_ps20b 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class aftershock_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
aftershock_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_aftershock_ps20 0
|
||||
class aftershock_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
aftershock_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_aftershock_ps20 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class aftershock_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
aftershock_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_aftershock_ps20b 0
|
||||
class aftershock_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
aftershock_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_aftershock_ps20b 0
|
||||
@@ -0,0 +1,85 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class aftershock_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
aftershock_vs20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_aftershock_vs20 0
|
||||
class aftershock_vs20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nCOMPRESSED_VERTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCOMPRESSED_VERTS;
|
||||
#endif
|
||||
public:
|
||||
void SetCOMPRESSED_VERTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCOMPRESSED_VERTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetCOMPRESSED_VERTS( bool i )
|
||||
{
|
||||
m_nCOMPRESSED_VERTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
aftershock_vs20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOMPRESSED_VERTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bCOMPRESSED_VERTS && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_aftershock_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING + 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class alphadist_ps11_Static_Index
|
||||
{
|
||||
public:
|
||||
alphadist_ps11_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_alphadist_ps11 0
|
||||
class alphadist_ps11_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
alphadist_ps11_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_alphadist_ps11 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class appchooser360movie_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
appchooser360movie_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_appchooser360movie_ps20 0
|
||||
class appchooser360movie_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
appchooser360movie_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_appchooser360movie_ps20 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class appchooser360movie_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
appchooser360movie_ps20b_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_appchooser360movie_ps20b 0
|
||||
class appchooser360movie_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
appchooser360movie_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_appchooser360movie_ps20b 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bik_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
bik_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bik_ps20 0
|
||||
class bik_ps20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
bik_ps20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bik_ps20 psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0
|
||||
@@ -0,0 +1,87 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bik_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
bik_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nCONVERT_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bik_ps20b 0
|
||||
class bik_ps20b_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
bik_ps20b_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bik_ps20b psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0
|
||||
@@ -0,0 +1,30 @@
|
||||
class bik_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
bik_vs11_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class bik_vs11_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
bik_vs11_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bik_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
bik_vs20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bik_vs20 0
|
||||
class bik_vs20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
bik_vs20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bik_vs20 vsh_forgot_to_set_dynamic_DOWATERFOG + 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bloomadd_ps11_Static_Index
|
||||
{
|
||||
public:
|
||||
bloomadd_ps11_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bloomadd_ps11 0
|
||||
class bloomadd_ps11_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
bloomadd_ps11_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bloomadd_ps11 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bloomadd_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
bloomadd_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bloomadd_ps20 0
|
||||
class bloomadd_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
bloomadd_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bloomadd_ps20 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bloomadd_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
bloomadd_ps20b_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bloomadd_ps20b 0
|
||||
class bloomadd_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
bloomadd_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bloomadd_ps20b 0
|
||||
@@ -0,0 +1,33 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bufferclearobeystencil_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
bufferclearobeystencil_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bufferclearobeystencil_ps20 0
|
||||
class bufferclearobeystencil_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
bufferclearobeystencil_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bufferclearobeystencil_ps20 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bufferclearobeystencil_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
bufferclearobeystencil_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bufferclearobeystencil_ps20b 0
|
||||
class bufferclearobeystencil_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
bufferclearobeystencil_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bufferclearobeystencil_ps20b 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bufferclearobeystencil_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nUSESCOLOR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSESCOLOR;
|
||||
#endif
|
||||
public:
|
||||
void SetUSESCOLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSESCOLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSESCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSESCOLOR( bool i )
|
||||
{
|
||||
m_nUSESCOLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSESCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
bufferclearobeystencil_vs20_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bUSESCOLOR = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSESCOLOR = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bUSESCOLOR;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nUSESCOLOR ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bufferclearobeystencil_vs20 vsh_forgot_to_set_static_USESCOLOR + 0
|
||||
class bufferclearobeystencil_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
bufferclearobeystencil_vs20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bufferclearobeystencil_vs20 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class bumpmappedlightmap_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
bumpmappedlightmap_vs11_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bumpmappedlightmap_vs11 0
|
||||
class bumpmappedlightmap_vs11_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
bumpmappedlightmap_vs11_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_bumpmappedlightmap_vs11 vsh_forgot_to_set_dynamic_DOWATERFOG + 0
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class cable_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
cable_ps20_Static_Index( )
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cable_ps20 0
|
||||
class cable_ps20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
cable_ps20_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cable_ps20 psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0
|
||||
@@ -0,0 +1,88 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $HDRTYPE && defined $HDRENABLED && !$HDRTYPE && $HDRENABLED
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// defined $LIGHTING_PREVIEW && defined $HDRTYPE && $LIGHTING_PREVIEW && $HDRTYPE != 0
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
// ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
|
||||
// defined $HDRTYPE && defined $HDRENABLED && !$HDRTYPE && $HDRENABLED
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// defined $LIGHTING_PREVIEW && defined $HDRTYPE && $LIGHTING_PREVIEW && $HDRTYPE != 0
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
// ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
|
||||
|
||||
#pragma once
|
||||
#include "shaderlib/cshader.h"
|
||||
class cable_ps20b_Static_Index
|
||||
{
|
||||
unsigned int m_nCONVERT_TO_SRGB : 2;
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
}
|
||||
|
||||
cable_ps20b_Static_Index( )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
return ( 6 * m_nCONVERT_TO_SRGB ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderStaticTest_cable_ps20b 1
|
||||
|
||||
|
||||
class cable_ps20b_Dynamic_Index
|
||||
{
|
||||
unsigned int m_nPIXELFOGTYPE : 2;
|
||||
unsigned int m_nWRITE_DEPTH_TO_DESTALPHA : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE : 1;
|
||||
bool m_bWRITE_DEPTH_TO_DESTALPHA : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
void SetWRITE_DEPTH_TO_DESTALPHA( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = i;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
cable_ps20b_Dynamic_Index( )
|
||||
{
|
||||
m_nPIXELFOGTYPE = 0;
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = false;
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bPIXELFOGTYPE && m_bWRITE_DEPTH_TO_DESTALPHA );
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + ( 3 * m_nWRITE_DEPTH_TO_DESTALPHA ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderDynamicTest_cable_ps20b psh_forgot_to_set_dynamic_PIXELFOGTYPE + psh_forgot_to_set_dynamic_WRITE_DEPTH_TO_DESTALPHA
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
|
||||
#pragma once
|
||||
#include "shaderlib/cshader.h"
|
||||
class cable_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
cable_vs20_Static_Index( )
|
||||
{
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderStaticTest_cable_vs20 1
|
||||
|
||||
|
||||
class cable_vs20_Dynamic_Index
|
||||
{
|
||||
unsigned int m_nDOWATERFOG : 2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG : 1;
|
||||
#endif // _DEBUG
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
cable_vs20_Dynamic_Index( )
|
||||
{
|
||||
m_nDOWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
}
|
||||
|
||||
int GetIndex() const
|
||||
{
|
||||
Assert( m_bDOWATERFOG );
|
||||
return ( 1 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
|
||||
#define shaderDynamicTest_cable_vs20 vsh_forgot_to_set_dynamic_DOWATERFOG
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
class cloak_blended_pass_dx8_vs11_Static_Index
|
||||
{
|
||||
public:
|
||||
cloak_blended_pass_dx8_vs11_Static_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
class cloak_blended_pass_dx8_vs11_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nSKINNING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSKINNING;
|
||||
#endif
|
||||
public:
|
||||
void SetSKINNING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSKINNING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
void SetSKINNING( bool i )
|
||||
{
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
cloak_blended_pass_dx8_vs11_Dynamic_Index()
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllDynamicVarsDefined = m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,60 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_blended_pass_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nBUMPMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBUMPMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetBUMPMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBUMPMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetBUMPMAP( bool i )
|
||||
{
|
||||
m_nBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
cloak_blended_pass_ps20_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nBUMPMAP = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bBUMPMAP;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nBUMPMAP ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cloak_blended_pass_ps20 psh_forgot_to_set_static_BUMPMAP + 0
|
||||
class cloak_blended_pass_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
cloak_blended_pass_ps20_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cloak_blended_pass_ps20 0
|
||||
@@ -0,0 +1,85 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_blended_pass_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBUMPMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBUMPMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetBUMPMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBUMPMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetBUMPMAP( bool i )
|
||||
{
|
||||
m_nBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
cloak_blended_pass_ps20b_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nBUMPMAP = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB && m_bBUMPMAP;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + ( 2 * m_nBUMPMAP ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cloak_blended_pass_ps20b psh_forgot_to_set_static_BUMPMAP + 0
|
||||
class cloak_blended_pass_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
cloak_blended_pass_ps20b_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cloak_blended_pass_ps20b 0
|
||||
@@ -0,0 +1,85 @@
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_blended_pass_ps30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONVERT_TO_SRGB;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONVERT_TO_SRGB;
|
||||
#endif
|
||||
public:
|
||||
void SetCONVERT_TO_SRGB( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONVERT_TO_SRGB = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONVERT_TO_SRGB( bool i )
|
||||
{
|
||||
m_nCONVERT_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBUMPMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBUMPMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetBUMPMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBUMPMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetBUMPMAP( bool i )
|
||||
{
|
||||
m_nBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
cloak_blended_pass_ps30_Static_Index( )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONVERT_TO_SRGB = true;
|
||||
#endif // _DEBUG
|
||||
m_nCONVERT_TO_SRGB = g_pHardwareConfig->NeedsShaderSRGBConversion();
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nBUMPMAP = 0;
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
bool bAllStaticVarsDefined = m_bCONVERT_TO_SRGB && m_bBUMPMAP;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCONVERT_TO_SRGB ) + ( 2 * m_nBUMPMAP ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cloak_blended_pass_ps30 psh_forgot_to_set_static_BUMPMAP + 0
|
||||
class cloak_blended_pass_ps30_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
cloak_blended_pass_ps30_Dynamic_Index()
|
||||
{
|
||||
}
|
||||
int GetIndex()
|
||||
{
|
||||
// Asserts to make sure that we aren't using any skipped combinations.
|
||||
// Asserts to make sure that we are setting all of the combination vars.
|
||||
#ifdef _DEBUG
|
||||
#endif // _DEBUG
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cloak_blended_pass_ps30 0
|
||||
Loaded 100 of 7474 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user