initial
This commit is contained in:
56
materialsystem/stdshaders/fxctmp9/Bloom_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/Bloom_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class bloom_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bloom_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
bloom_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t Bloom_ps20_combos =
|
||||
{
|
||||
"Bloom_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_Bloom_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_Bloom_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &Bloom_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_Bloom_ps20 s_ConstructMe_Bloom_ps20;
|
||||
56
materialsystem/stdshaders/fxctmp9/Bloom_ps20b.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/Bloom_ps20b.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class bloom_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bloom_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_ps20b 0
|
||||
class bloom_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bloom_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t Bloom_ps20b_combos =
|
||||
{
|
||||
"Bloom_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_Bloom_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_Bloom_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &Bloom_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_Bloom_ps20b s_ConstructMe_Bloom_ps20b;
|
||||
116
materialsystem/stdshaders/fxctmp9/BlurFilter_ps20.inc
Normal file
116
materialsystem/stdshaders/fxctmp9/BlurFilter_ps20.inc
Normal file
@@ -0,0 +1,116 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurfilter_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nKERNEL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bKERNEL;
|
||||
#endif
|
||||
public:
|
||||
void SetKERNEL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nKERNEL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bKERNEL = true;
|
||||
#endif
|
||||
}
|
||||
void SetKERNEL( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nKERNEL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bKERNEL = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCLEAR_COLOR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCLEAR_COLOR;
|
||||
#endif
|
||||
public:
|
||||
void SetCLEAR_COLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCLEAR_COLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCLEAR_COLOR = true;
|
||||
#endif
|
||||
}
|
||||
void SetCLEAR_COLOR( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCLEAR_COLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCLEAR_COLOR = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurfilter_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bKERNEL = false;
|
||||
#endif // _DEBUG
|
||||
m_nKERNEL = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCLEAR_COLOR = false;
|
||||
#endif // _DEBUG
|
||||
m_nCLEAR_COLOR = 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_bKERNEL && m_bCLEAR_COLOR;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nKERNEL ) + ( 5 * m_nCLEAR_COLOR ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blurfilter_ps20 psh_forgot_to_set_static_KERNEL + psh_forgot_to_set_static_CLEAR_COLOR + 0
|
||||
class blurfilter_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurfilter_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_BlurFilter_ps20[2] =
|
||||
{
|
||||
{ "KERNEL", 0, 4 },
|
||||
{ "CLEAR_COLOR", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t BlurFilter_ps20_combos =
|
||||
{
|
||||
"BlurFilter_ps20", NULL, 0, s_StaticComboArray_BlurFilter_ps20, 2
|
||||
};
|
||||
|
||||
class ConstructMe_BlurFilter_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_BlurFilter_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &BlurFilter_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_BlurFilter_ps20 s_ConstructMe_BlurFilter_ps20;
|
||||
145
materialsystem/stdshaders/fxctmp9/BlurFilter_ps20b.inc
Normal file
145
materialsystem/stdshaders/fxctmp9/BlurFilter_ps20b.inc
Normal file
@@ -0,0 +1,145 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $APPROX_SRGB_ADAPTER == 1 ) && ( $KERNEL == 0 ) [PC]
|
||||
// ( $APPROX_SRGB_ADAPTER == 1 ) && ( $CLEAR_COLOR == 1 ) [PC]
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurfilter_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nKERNEL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bKERNEL;
|
||||
#endif
|
||||
public:
|
||||
void SetKERNEL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nKERNEL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bKERNEL = true;
|
||||
#endif
|
||||
}
|
||||
void SetKERNEL( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nKERNEL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bKERNEL = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCLEAR_COLOR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCLEAR_COLOR;
|
||||
#endif
|
||||
public:
|
||||
void SetCLEAR_COLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCLEAR_COLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCLEAR_COLOR = true;
|
||||
#endif
|
||||
}
|
||||
void SetCLEAR_COLOR( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCLEAR_COLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCLEAR_COLOR = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nAPPROX_SRGB_ADAPTER = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bAPPROX_SRGB_ADAPTER = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurfilter_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bKERNEL = false;
|
||||
#endif // _DEBUG
|
||||
m_nKERNEL = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCLEAR_COLOR = false;
|
||||
#endif // _DEBUG
|
||||
m_nCLEAR_COLOR = 0;
|
||||
#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_bKERNEL && m_bCLEAR_COLOR && m_bAPPROX_SRGB_ADAPTER;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nKERNEL ) + ( 5 * m_nCLEAR_COLOR ) + ( 10 * m_nAPPROX_SRGB_ADAPTER ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blurfilter_ps20b psh_forgot_to_set_static_KERNEL + psh_forgot_to_set_static_CLEAR_COLOR + psh_forgot_to_set_static_APPROX_SRGB_ADAPTER + 0
|
||||
class blurfilter_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurfilter_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_BlurFilter_ps20b[3] =
|
||||
{
|
||||
{ "KERNEL", 0, 4 },
|
||||
{ "CLEAR_COLOR", 0, 1 },
|
||||
{ "APPROX_SRGB_ADAPTER", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t BlurFilter_ps20b_combos =
|
||||
{
|
||||
"BlurFilter_ps20b", NULL, 0, s_StaticComboArray_BlurFilter_ps20b, 3
|
||||
};
|
||||
|
||||
class ConstructMe_BlurFilter_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_BlurFilter_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &BlurFilter_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_BlurFilter_ps20b s_ConstructMe_BlurFilter_ps20b;
|
||||
85
materialsystem/stdshaders/fxctmp9/BlurFilter_vs20.inc
Normal file
85
materialsystem/stdshaders/fxctmp9/BlurFilter_vs20.inc
Normal file
@@ -0,0 +1,85 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurfilter_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nKERNEL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bKERNEL;
|
||||
#endif
|
||||
public:
|
||||
void SetKERNEL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nKERNEL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bKERNEL = true;
|
||||
#endif
|
||||
}
|
||||
void SetKERNEL( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nKERNEL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bKERNEL = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurfilter_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bKERNEL = false;
|
||||
#endif // _DEBUG
|
||||
m_nKERNEL = 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_bKERNEL;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nKERNEL ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blurfilter_vs20 vsh_forgot_to_set_static_KERNEL + 0
|
||||
class blurfilter_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurfilter_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_BlurFilter_vs20[1] =
|
||||
{
|
||||
{ "KERNEL", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t BlurFilter_vs20_combos =
|
||||
{
|
||||
"BlurFilter_vs20", NULL, 0, s_StaticComboArray_BlurFilter_vs20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_BlurFilter_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_BlurFilter_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &BlurFilter_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_BlurFilter_vs20 s_ConstructMe_BlurFilter_vs20;
|
||||
117
materialsystem/stdshaders/fxctmp9/Downsample_nohdr_ps20.inc
Normal file
117
materialsystem/stdshaders/fxctmp9/Downsample_nohdr_ps20.inc
Normal file
@@ -0,0 +1,117 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $FLOAT_BACK_BUFFER == 1 ) && ( $SRGB_INPUT_ADAPTER == 1 )
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_nohdr_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nBLOOMTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBLOOMTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetBLOOMTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBLOOMTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBLOOMTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetBLOOMTYPE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBLOOMTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBLOOMTYPE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nPS3REGCOUNT48;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPS3REGCOUNT48;
|
||||
#endif
|
||||
public:
|
||||
void SetPS3REGCOUNT48( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nPS3REGCOUNT48 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPS3REGCOUNT48 = true;
|
||||
#endif
|
||||
}
|
||||
void SetPS3REGCOUNT48( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nPS3REGCOUNT48 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPS3REGCOUNT48 = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
downsample_nohdr_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bBLOOMTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nBLOOMTYPE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPS3REGCOUNT48 = false;
|
||||
#endif // _DEBUG
|
||||
m_nPS3REGCOUNT48 = 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_bBLOOMTYPE && m_bPS3REGCOUNT48;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nBLOOMTYPE ) + ( 2 * m_nPS3REGCOUNT48 ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_downsample_nohdr_ps20 psh_forgot_to_set_static_BLOOMTYPE + psh_forgot_to_set_static_PS3REGCOUNT48 + 0
|
||||
class downsample_nohdr_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
downsample_nohdr_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_Downsample_nohdr_ps20[2] =
|
||||
{
|
||||
{ "BLOOMTYPE", 0, 1 },
|
||||
{ "PS3REGCOUNT48", 0, 0 },
|
||||
};
|
||||
static const ShaderComboSemantics_t Downsample_nohdr_ps20_combos =
|
||||
{
|
||||
"Downsample_nohdr_ps20", NULL, 0, s_StaticComboArray_Downsample_nohdr_ps20, 2
|
||||
};
|
||||
|
||||
class ConstructMe_Downsample_nohdr_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_Downsample_nohdr_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &Downsample_nohdr_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_Downsample_nohdr_ps20 s_ConstructMe_Downsample_nohdr_ps20;
|
||||
177
materialsystem/stdshaders/fxctmp9/Downsample_nohdr_ps20b.inc
Normal file
177
materialsystem/stdshaders/fxctmp9/Downsample_nohdr_ps20b.inc
Normal file
@@ -0,0 +1,177 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $FLOAT_BACK_BUFFER == 1 ) && ( $SRGB_INPUT_ADAPTER == 1 )
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_nohdr_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nBLOOMTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBLOOMTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetBLOOMTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBLOOMTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBLOOMTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetBLOOMTYPE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBLOOMTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBLOOMTYPE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nPS3REGCOUNT48;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPS3REGCOUNT48;
|
||||
#endif
|
||||
public:
|
||||
void SetPS3REGCOUNT48( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nPS3REGCOUNT48 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPS3REGCOUNT48 = true;
|
||||
#endif
|
||||
}
|
||||
void SetPS3REGCOUNT48( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nPS3REGCOUNT48 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPS3REGCOUNT48 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSRGB_INPUT_ADAPTER;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSRGB_INPUT_ADAPTER;
|
||||
#endif
|
||||
public:
|
||||
void SetSRGB_INPUT_ADAPTER( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSRGB_INPUT_ADAPTER = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSRGB_INPUT_ADAPTER = true;
|
||||
#endif
|
||||
}
|
||||
void SetSRGB_INPUT_ADAPTER( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSRGB_INPUT_ADAPTER = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSRGB_INPUT_ADAPTER = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
downsample_nohdr_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bBLOOMTYPE = false;
|
||||
#endif // _DEBUG
|
||||
m_nBLOOMTYPE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPS3REGCOUNT48 = false;
|
||||
#endif // _DEBUG
|
||||
m_nPS3REGCOUNT48 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSRGB_INPUT_ADAPTER = false;
|
||||
#endif // _DEBUG
|
||||
m_nSRGB_INPUT_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_bBLOOMTYPE && m_bPS3REGCOUNT48 && m_bSRGB_INPUT_ADAPTER;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nBLOOMTYPE ) + ( 4 * m_nPS3REGCOUNT48 ) + ( 4 * m_nSRGB_INPUT_ADAPTER ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_downsample_nohdr_ps20b psh_forgot_to_set_static_BLOOMTYPE + psh_forgot_to_set_static_PS3REGCOUNT48 + psh_forgot_to_set_static_SRGB_INPUT_ADAPTER + 0
|
||||
class downsample_nohdr_ps20b_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nFLOAT_BACK_BUFFER;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLOAT_BACK_BUFFER;
|
||||
#endif
|
||||
public:
|
||||
void SetFLOAT_BACK_BUFFER( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLOAT_BACK_BUFFER = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOAT_BACK_BUFFER = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLOAT_BACK_BUFFER( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLOAT_BACK_BUFFER = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOAT_BACK_BUFFER = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
downsample_nohdr_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bFLOAT_BACK_BUFFER = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLOAT_BACK_BUFFER = 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_bFLOAT_BACK_BUFFER;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nFLOAT_BACK_BUFFER ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_downsample_nohdr_ps20b psh_forgot_to_set_dynamic_FLOAT_BACK_BUFFER + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_Downsample_nohdr_ps20b[1] =
|
||||
{
|
||||
{ "FLOAT_BACK_BUFFER", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_Downsample_nohdr_ps20b[3] =
|
||||
{
|
||||
{ "BLOOMTYPE", 0, 1 },
|
||||
{ "PS3REGCOUNT48", 0, 0 },
|
||||
{ "SRGB_INPUT_ADAPTER", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t Downsample_nohdr_ps20b_combos =
|
||||
{
|
||||
"Downsample_nohdr_ps20b", s_DynamicComboArray_Downsample_nohdr_ps20b, 1, s_StaticComboArray_Downsample_nohdr_ps20b, 3
|
||||
};
|
||||
|
||||
class ConstructMe_Downsample_nohdr_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_Downsample_nohdr_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &Downsample_nohdr_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_Downsample_nohdr_ps20b s_ConstructMe_Downsample_nohdr_ps20b;
|
||||
56
materialsystem/stdshaders/fxctmp9/Downsample_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/Downsample_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
downsample_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
downsample_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t Downsample_ps20_combos =
|
||||
{
|
||||
"Downsample_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_Downsample_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_Downsample_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &Downsample_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_Downsample_ps20 s_ConstructMe_Downsample_ps20;
|
||||
56
materialsystem/stdshaders/fxctmp9/Downsample_ps20b.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/Downsample_ps20b.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
downsample_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_ps20b 0
|
||||
class downsample_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
downsample_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t Downsample_ps20b_combos =
|
||||
{
|
||||
"Downsample_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_Downsample_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_Downsample_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &Downsample_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_Downsample_ps20b s_ConstructMe_Downsample_ps20b;
|
||||
52
materialsystem/stdshaders/fxctmp9/Downsample_vs20.inc
Normal file
52
materialsystem/stdshaders/fxctmp9/Downsample_vs20.inc
Normal file
@@ -0,0 +1,52 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class downsample_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
downsample_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
downsample_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t Downsample_vs20_combos =
|
||||
{
|
||||
"Downsample_vs20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_Downsample_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_Downsample_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &Downsample_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_Downsample_vs20 s_ConstructMe_Downsample_vs20;
|
||||
56
materialsystem/stdshaders/fxctmp9/HDRCombineTo16Bit_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/HDRCombineTo16Bit_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrcombineto16bit_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
hdrcombineto16bit_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
hdrcombineto16bit_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t HDRCombineTo16Bit_ps20_combos =
|
||||
{
|
||||
"HDRCombineTo16Bit_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_HDRCombineTo16Bit_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_HDRCombineTo16Bit_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &HDRCombineTo16Bit_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_HDRCombineTo16Bit_ps20 s_ConstructMe_HDRCombineTo16Bit_ps20;
|
||||
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrcombineto16bit_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
hdrcombineto16bit_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_ps20b 0
|
||||
class hdrcombineto16bit_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
hdrcombineto16bit_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t HDRCombineTo16Bit_ps20b_combos =
|
||||
{
|
||||
"HDRCombineTo16Bit_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_HDRCombineTo16Bit_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_HDRCombineTo16Bit_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &HDRCombineTo16Bit_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_HDRCombineTo16Bit_ps20b s_ConstructMe_HDRCombineTo16Bit_ps20b;
|
||||
52
materialsystem/stdshaders/fxctmp9/HDRCombineTo16Bit_vs20.inc
Normal file
52
materialsystem/stdshaders/fxctmp9/HDRCombineTo16Bit_vs20.inc
Normal file
@@ -0,0 +1,52 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrcombineto16bit_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
hdrcombineto16bit_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
hdrcombineto16bit_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t HDRCombineTo16Bit_vs20_combos =
|
||||
{
|
||||
"HDRCombineTo16Bit_vs20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_HDRCombineTo16Bit_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_HDRCombineTo16Bit_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &HDRCombineTo16Bit_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_HDRCombineTo16Bit_vs20 s_ConstructMe_HDRCombineTo16Bit_vs20;
|
||||
56
materialsystem/stdshaders/fxctmp9/HDRSelectRange_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/HDRSelectRange_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrselectrange_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
hdrselectrange_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
hdrselectrange_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t HDRSelectRange_ps20_combos =
|
||||
{
|
||||
"HDRSelectRange_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_HDRSelectRange_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_HDRSelectRange_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &HDRSelectRange_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_HDRSelectRange_ps20 s_ConstructMe_HDRSelectRange_ps20;
|
||||
56
materialsystem/stdshaders/fxctmp9/HDRSelectRange_ps20b.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/HDRSelectRange_ps20b.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrselectrange_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
hdrselectrange_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_ps20b 0
|
||||
class hdrselectrange_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
hdrselectrange_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t HDRSelectRange_ps20b_combos =
|
||||
{
|
||||
"HDRSelectRange_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_HDRSelectRange_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_HDRSelectRange_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &HDRSelectRange_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_HDRSelectRange_ps20b s_ConstructMe_HDRSelectRange_ps20b;
|
||||
52
materialsystem/stdshaders/fxctmp9/HDRSelectRange_vs20.inc
Normal file
52
materialsystem/stdshaders/fxctmp9/HDRSelectRange_vs20.inc
Normal file
@@ -0,0 +1,52 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class hdrselectrange_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
hdrselectrange_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
hdrselectrange_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t HDRSelectRange_vs20_combos =
|
||||
{
|
||||
"HDRSelectRange_vs20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_HDRSelectRange_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_HDRSelectRange_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &HDRSelectRange_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_HDRSelectRange_vs20 s_ConstructMe_HDRSelectRange_vs20;
|
||||
@@ -0,0 +1,89 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class introscreenspaceeffect_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
introscreenspaceeffect_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 9 );
|
||||
m_nMODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
introscreenspaceeffect_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#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
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_IntroScreenSpaceEffect_ps20[1] =
|
||||
{
|
||||
{ "MODE", 0, 9 },
|
||||
};
|
||||
static const ShaderComboSemantics_t IntroScreenSpaceEffect_ps20_combos =
|
||||
{
|
||||
"IntroScreenSpaceEffect_ps20", s_DynamicComboArray_IntroScreenSpaceEffect_ps20, 1, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_IntroScreenSpaceEffect_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_IntroScreenSpaceEffect_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &IntroScreenSpaceEffect_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_IntroScreenSpaceEffect_ps20 s_ConstructMe_IntroScreenSpaceEffect_ps20;
|
||||
@@ -0,0 +1,122 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class introscreenspaceeffect_ps20b_Static_Index
|
||||
{
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nLINEAR_TO_SRGB = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLINEAR_TO_SRGB = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
introscreenspaceeffect_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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_bLINEAR_TO_SRGB;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 10 * 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 9 );
|
||||
m_nMODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
introscreenspaceeffect_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#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
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_IntroScreenSpaceEffect_ps20b[1] =
|
||||
{
|
||||
{ "MODE", 0, 9 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_IntroScreenSpaceEffect_ps20b[1] =
|
||||
{
|
||||
{ "LINEAR_TO_SRGB", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t IntroScreenSpaceEffect_ps20b_combos =
|
||||
{
|
||||
"IntroScreenSpaceEffect_ps20b", s_DynamicComboArray_IntroScreenSpaceEffect_ps20b, 1, s_StaticComboArray_IntroScreenSpaceEffect_ps20b, 1
|
||||
};
|
||||
|
||||
class ConstructMe_IntroScreenSpaceEffect_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_IntroScreenSpaceEffect_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &IntroScreenSpaceEffect_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_IntroScreenSpaceEffect_ps20b s_ConstructMe_IntroScreenSpaceEffect_ps20b;
|
||||
230
materialsystem/stdshaders/fxctmp9/ShatteredGlass_ps20.inc
Normal file
230
materialsystem/stdshaders/fxctmp9/ShatteredGlass_ps20.inc
Normal file
@@ -0,0 +1,230 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
|
||||
m_nHDRTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
shatteredglass_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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 ( 2 * m_nCUBEMAP ) + ( 4 * m_nVERTEXCOLOR ) + ( 8 * m_nENVMAPMASK ) + ( 16 * m_nBASEALPHAENVMAPMASK ) + ( 32 * 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_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
shatteredglass_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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_shatteredglass_ps20 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_ShatteredGlass_ps20[1] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_ShatteredGlass_ps20[5] =
|
||||
{
|
||||
{ "CUBEMAP", 0, 1 },
|
||||
{ "VERTEXCOLOR", 0, 1 },
|
||||
{ "ENVMAPMASK", 0, 1 },
|
||||
{ "BASEALPHAENVMAPMASK", 0, 1 },
|
||||
{ "HDRTYPE", 0, 2 },
|
||||
};
|
||||
static const ShaderComboSemantics_t ShatteredGlass_ps20_combos =
|
||||
{
|
||||
"ShatteredGlass_ps20", s_DynamicComboArray_ShatteredGlass_ps20, 1, s_StaticComboArray_ShatteredGlass_ps20, 5
|
||||
};
|
||||
|
||||
class ConstructMe_ShatteredGlass_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_ShatteredGlass_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &ShatteredGlass_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_ShatteredGlass_ps20 s_ConstructMe_ShatteredGlass_ps20;
|
||||
230
materialsystem/stdshaders/fxctmp9/ShatteredGlass_ps20b.inc
Normal file
230
materialsystem/stdshaders/fxctmp9/ShatteredGlass_ps20b.inc
Normal file
@@ -0,0 +1,230 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class shatteredglass_ps20b_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
|
||||
m_nHDRTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
shatteredglass_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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 ( 2 * m_nCUBEMAP ) + ( 4 * m_nVERTEXCOLOR ) + ( 8 * m_nENVMAPMASK ) + ( 16 * m_nBASEALPHAENVMAPMASK ) + ( 32 * 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_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
shatteredglass_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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_shatteredglass_ps20b 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_ShatteredGlass_ps20b[1] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_ShatteredGlass_ps20b[5] =
|
||||
{
|
||||
{ "CUBEMAP", 0, 1 },
|
||||
{ "VERTEXCOLOR", 0, 1 },
|
||||
{ "ENVMAPMASK", 0, 1 },
|
||||
{ "BASEALPHAENVMAPMASK", 0, 1 },
|
||||
{ "HDRTYPE", 0, 2 },
|
||||
};
|
||||
static const ShaderComboSemantics_t ShatteredGlass_ps20b_combos =
|
||||
{
|
||||
"ShatteredGlass_ps20b", s_DynamicComboArray_ShatteredGlass_ps20b, 1, s_StaticComboArray_ShatteredGlass_ps20b, 5
|
||||
};
|
||||
|
||||
class ConstructMe_ShatteredGlass_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_ShatteredGlass_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &ShatteredGlass_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_ShatteredGlass_ps20b s_ConstructMe_ShatteredGlass_ps20b;
|
||||
174
materialsystem/stdshaders/fxctmp9/ShatteredGlass_vs20.inc
Normal file
174
materialsystem/stdshaders/fxctmp9/ShatteredGlass_vs20.inc
Normal file
@@ -0,0 +1,174 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// ( $DOWATERFOG == 0 ) && ( $HARDWAREFOGBLEND == 0 ) && ( $DOPIXELFOG == 0 )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class shatteredglass_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nENVMAP_MASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP_MASK = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
shatteredglass_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = !g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
#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_bDOPIXELFOG && m_bHARDWAREFOGBLEND && m_bENVMAP_MASK;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nDOPIXELFOG ) + ( 4 * m_nHARDWAREFOGBLEND ) + ( 8 * 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
shatteredglass_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_ShatteredGlass_vs20[1] =
|
||||
{
|
||||
{ "DOWATERFOG", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_ShatteredGlass_vs20[3] =
|
||||
{
|
||||
{ "DOPIXELFOG", 0, 1 },
|
||||
{ "HARDWAREFOGBLEND", 0, 1 },
|
||||
{ "ENVMAP_MASK", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t ShatteredGlass_vs20_combos =
|
||||
{
|
||||
"ShatteredGlass_vs20", s_DynamicComboArray_ShatteredGlass_vs20, 1, s_StaticComboArray_ShatteredGlass_vs20, 3
|
||||
};
|
||||
|
||||
class ConstructMe_ShatteredGlass_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_ShatteredGlass_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &ShatteredGlass_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_ShatteredGlass_vs20 s_ConstructMe_ShatteredGlass_vs20;
|
||||
316
materialsystem/stdshaders/fxctmp9/WaterCheap_ps20.inc
Normal file
316
materialsystem/stdshaders/fxctmp9/WaterCheap_ps20.inc
Normal file
@@ -0,0 +1,316 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
|
||||
m_nHDRTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLOWMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLOWMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetFLOWMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLOWMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOWMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLOWMAP( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLOWMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOWMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLOW_DEBUG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLOW_DEBUG;
|
||||
#endif
|
||||
public:
|
||||
void SetFLOW_DEBUG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLOW_DEBUG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOW_DEBUG = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLOW_DEBUG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLOW_DEBUG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOW_DEBUG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
watercheap_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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_bFLOWMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLOWMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOW_DEBUG = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLOW_DEBUG = 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_bFLOWMAP && m_bFLOW_DEBUG;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 4 * m_nMULTITEXTURE ) + ( 8 * m_nFRESNEL ) + ( 16 * m_nBLEND ) + ( 32 * m_nREFRACTALPHA ) + ( 64 * m_nHDRTYPE ) + ( 192 * m_nFLOWMAP ) + ( 384 * m_nFLOW_DEBUG ) + 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_FLOWMAP + psh_forgot_to_set_static_FLOW_DEBUG + 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
watercheap_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = false;
|
||||
#endif // _DEBUG
|
||||
m_nHDRENABLED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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 + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_WaterCheap_ps20[2] =
|
||||
{
|
||||
{ "HDRENABLED", 0, 1 },
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_WaterCheap_ps20[7] =
|
||||
{
|
||||
{ "MULTITEXTURE", 0, 1 },
|
||||
{ "FRESNEL", 0, 1 },
|
||||
{ "BLEND", 0, 1 },
|
||||
{ "REFRACTALPHA", 0, 1 },
|
||||
{ "HDRTYPE", 0, 2 },
|
||||
{ "FLOWMAP", 0, 1 },
|
||||
{ "FLOW_DEBUG", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t WaterCheap_ps20_combos =
|
||||
{
|
||||
"WaterCheap_ps20", s_DynamicComboArray_WaterCheap_ps20, 2, s_StaticComboArray_WaterCheap_ps20, 7
|
||||
};
|
||||
|
||||
class ConstructMe_WaterCheap_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_WaterCheap_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &WaterCheap_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_WaterCheap_ps20 s_ConstructMe_WaterCheap_ps20;
|
||||
316
materialsystem/stdshaders/fxctmp9/WaterCheap_ps20b.inc
Normal file
316
materialsystem/stdshaders/fxctmp9/WaterCheap_ps20b.inc
Normal file
@@ -0,0 +1,316 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class watercheap_ps20b_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
|
||||
m_nHDRTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHDRTYPE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLOWMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLOWMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetFLOWMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLOWMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOWMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLOWMAP( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLOWMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOWMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLOW_DEBUG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLOW_DEBUG;
|
||||
#endif
|
||||
public:
|
||||
void SetFLOW_DEBUG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLOW_DEBUG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOW_DEBUG = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLOW_DEBUG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLOW_DEBUG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOW_DEBUG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
watercheap_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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_bFLOWMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLOWMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOW_DEBUG = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLOW_DEBUG = 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_bFLOWMAP && m_bFLOW_DEBUG;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 4 * m_nMULTITEXTURE ) + ( 8 * m_nFRESNEL ) + ( 16 * m_nBLEND ) + ( 32 * m_nREFRACTALPHA ) + ( 64 * m_nHDRTYPE ) + ( 192 * m_nFLOWMAP ) + ( 384 * m_nFLOW_DEBUG ) + 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_FLOWMAP + psh_forgot_to_set_static_FLOW_DEBUG + 0
|
||||
class watercheap_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
watercheap_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bHDRENABLED = false;
|
||||
#endif // _DEBUG
|
||||
m_nHDRENABLED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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_ps20b psh_forgot_to_set_dynamic_HDRENABLED + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_WaterCheap_ps20b[2] =
|
||||
{
|
||||
{ "HDRENABLED", 0, 1 },
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_WaterCheap_ps20b[7] =
|
||||
{
|
||||
{ "MULTITEXTURE", 0, 1 },
|
||||
{ "FRESNEL", 0, 1 },
|
||||
{ "BLEND", 0, 1 },
|
||||
{ "REFRACTALPHA", 0, 1 },
|
||||
{ "HDRTYPE", 0, 2 },
|
||||
{ "FLOWMAP", 0, 1 },
|
||||
{ "FLOW_DEBUG", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t WaterCheap_ps20b_combos =
|
||||
{
|
||||
"WaterCheap_ps20b", s_DynamicComboArray_WaterCheap_ps20b, 2, s_StaticComboArray_WaterCheap_ps20b, 7
|
||||
};
|
||||
|
||||
class ConstructMe_WaterCheap_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_WaterCheap_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &WaterCheap_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_WaterCheap_ps20b s_ConstructMe_WaterCheap_ps20b;
|
||||
85
materialsystem/stdshaders/fxctmp9/WaterCheap_vs20.inc
Normal file
85
materialsystem/stdshaders/fxctmp9/WaterCheap_vs20.inc
Normal file
@@ -0,0 +1,85 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class watercheap_vs20_Static_Index
|
||||
{
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
watercheap_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bBLEND = false;
|
||||
#endif // _DEBUG
|
||||
m_nBLEND = 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_bBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_watercheap_vs20 vsh_forgot_to_set_static_BLEND + 0
|
||||
class watercheap_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
watercheap_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_watercheap_vs20 0
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_WaterCheap_vs20[1] =
|
||||
{
|
||||
{ "BLEND", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t WaterCheap_vs20_combos =
|
||||
{
|
||||
"WaterCheap_vs20", NULL, 0, s_StaticComboArray_WaterCheap_vs20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_WaterCheap_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_WaterCheap_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &WaterCheap_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_WaterCheap_vs20 s_ConstructMe_WaterCheap_vs20;
|
||||
197
materialsystem/stdshaders/fxctmp9/Water_vs20.inc
Normal file
197
materialsystem/stdshaders/fxctmp9/Water_vs20.inc
Normal file
@@ -0,0 +1,197 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// $MULTITEXTURE && $BASETEXTURE
|
||||
// $FLOWMAP && $MULTITEXTURE
|
||||
// ( $FLASHLIGHT == 0 ) && ( $FLASHLIGHTSHADOWS == 1 )
|
||||
// ( $FLASHLIGHT || $LIGHTMAPWATERFOG ) && ( ( $BASETEXTURE && !$FLOWMAP ) || $MULTITEXTURE )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class water_vs20_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nMULTITEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLASHLIGHT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nLIGHTMAPWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bLIGHTMAPWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetLIGHTMAPWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nLIGHTMAPWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTMAPWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetLIGHTMAPWATERFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nLIGHTMAPWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTMAPWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLOWMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLOWMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetFLOWMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLOWMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOWMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLOWMAP( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLOWMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOWMAP = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
water_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bBASETEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASETEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMULTITEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nMULTITEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLASHLIGHT = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTMAPWATERFOG = false;
|
||||
#endif // _DEBUG
|
||||
m_nLIGHTMAPWATERFOG = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLOWMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLOWMAP = 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_bFLASHLIGHT && m_bLIGHTMAPWATERFOG && m_bFLOWMAP;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nBASETEXTURE ) + ( 2 * m_nMULTITEXTURE ) + ( 4 * m_nFLASHLIGHT ) + ( 8 * m_nLIGHTMAPWATERFOG ) + ( 16 * m_nFLOWMAP ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_water_vs20 vsh_forgot_to_set_static_BASETEXTURE + vsh_forgot_to_set_static_MULTITEXTURE + vsh_forgot_to_set_static_FLASHLIGHT + vsh_forgot_to_set_static_LIGHTMAPWATERFOG + vsh_forgot_to_set_static_FLOWMAP + 0
|
||||
class water_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
water_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_water_vs20 0
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_Water_vs20[5] =
|
||||
{
|
||||
{ "BASETEXTURE", 0, 1 },
|
||||
{ "MULTITEXTURE", 0, 1 },
|
||||
{ "FLASHLIGHT", 0, 1 },
|
||||
{ "LIGHTMAPWATERFOG", 0, 1 },
|
||||
{ "FLOWMAP", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t Water_vs20_combos =
|
||||
{
|
||||
"Water_vs20", NULL, 0, s_StaticComboArray_Water_vs20, 5
|
||||
};
|
||||
|
||||
class ConstructMe_Water_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_Water_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &Water_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_Water_vs20 s_ConstructMe_Water_vs20;
|
||||
56
materialsystem/stdshaders/fxctmp9/accumbuff4sample_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/accumbuff4sample_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class accumbuff4sample_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
accumbuff4sample_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
accumbuff4sample_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t AccumBuff4Sample_ps20_combos =
|
||||
{
|
||||
"AccumBuff4Sample_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_AccumBuff4Sample_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_AccumBuff4Sample_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &AccumBuff4Sample_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_AccumBuff4Sample_ps20 s_ConstructMe_AccumBuff4Sample_ps20;
|
||||
56
materialsystem/stdshaders/fxctmp9/accumbuff4sample_ps20b.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/accumbuff4sample_ps20b.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class accumbuff4sample_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
accumbuff4sample_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_ps20b 0
|
||||
class accumbuff4sample_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
accumbuff4sample_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t AccumBuff4Sample_ps20b_combos =
|
||||
{
|
||||
"AccumBuff4Sample_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_AccumBuff4Sample_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_AccumBuff4Sample_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &AccumBuff4Sample_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_AccumBuff4Sample_ps20b s_ConstructMe_AccumBuff4Sample_ps20b;
|
||||
56
materialsystem/stdshaders/fxctmp9/accumbuff5sample_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/accumbuff5sample_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class accumbuff5sample_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
accumbuff5sample_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
accumbuff5sample_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t accumbuff5sample_ps20_combos =
|
||||
{
|
||||
"accumbuff5sample_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_accumbuff5sample_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_accumbuff5sample_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &accumbuff5sample_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_accumbuff5sample_ps20 s_ConstructMe_accumbuff5sample_ps20;
|
||||
56
materialsystem/stdshaders/fxctmp9/accumbuff5sample_ps20b.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/accumbuff5sample_ps20b.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class accumbuff5sample_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
accumbuff5sample_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_ps20b 0
|
||||
class accumbuff5sample_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
accumbuff5sample_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t accumbuff5sample_ps20b_combos =
|
||||
{
|
||||
"accumbuff5sample_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_accumbuff5sample_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_accumbuff5sample_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &accumbuff5sample_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_accumbuff5sample_ps20b s_ConstructMe_accumbuff5sample_ps20b;
|
||||
56
materialsystem/stdshaders/fxctmp9/aftershock_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/aftershock_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class aftershock_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
aftershock_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
aftershock_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t aftershock_ps20_combos =
|
||||
{
|
||||
"aftershock_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_aftershock_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_aftershock_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &aftershock_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_aftershock_ps20 s_ConstructMe_aftershock_ps20;
|
||||
56
materialsystem/stdshaders/fxctmp9/aftershock_ps20b.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/aftershock_ps20b.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class aftershock_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
aftershock_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_ps20b 0
|
||||
class aftershock_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
aftershock_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t aftershock_ps20b_combos =
|
||||
{
|
||||
"aftershock_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_aftershock_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_aftershock_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &aftershock_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_aftershock_ps20b s_ConstructMe_aftershock_ps20b;
|
||||
112
materialsystem/stdshaders/fxctmp9/aftershock_vs20.inc
Normal file
112
materialsystem/stdshaders/fxctmp9/aftershock_vs20.inc
Normal file
@@ -0,0 +1,112 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class aftershock_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
aftershock_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
aftershock_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#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
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_aftershock_vs20[2] =
|
||||
{
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t aftershock_vs20_combos =
|
||||
{
|
||||
"aftershock_vs20", s_DynamicComboArray_aftershock_vs20, 2, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_aftershock_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_aftershock_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &aftershock_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_aftershock_vs20 s_ConstructMe_aftershock_vs20;
|
||||
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class appchooser360movie_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
appchooser360movie_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
appchooser360movie_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t appchooser360movie_ps20_combos =
|
||||
{
|
||||
"appchooser360movie_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_appchooser360movie_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_appchooser360movie_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &appchooser360movie_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_appchooser360movie_ps20 s_ConstructMe_appchooser360movie_ps20;
|
||||
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class appchooser360movie_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
appchooser360movie_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
appchooser360movie_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t appchooser360movie_ps20b_combos =
|
||||
{
|
||||
"appchooser360movie_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_appchooser360movie_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_appchooser360movie_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &appchooser360movie_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_appchooser360movie_ps20b s_ConstructMe_appchooser360movie_ps20b;
|
||||
127
materialsystem/stdshaders/fxctmp9/bik_ps20.inc
Normal file
127
materialsystem/stdshaders/fxctmp9/bik_ps20.inc
Normal file
@@ -0,0 +1,127 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class bik_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nVERTEXALPHA;
|
||||
#ifdef _DEBUG
|
||||
bool m_bVERTEXALPHA;
|
||||
#endif
|
||||
public:
|
||||
void SetVERTEXALPHA( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nVERTEXALPHA = i;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXALPHA = true;
|
||||
#endif
|
||||
}
|
||||
void SetVERTEXALPHA( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nVERTEXALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXALPHA = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bik_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nVERTEXALPHA = 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_bVERTEXALPHA;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nVERTEXALPHA ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bik_ps20 psh_forgot_to_set_static_VERTEXALPHA + 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bik_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_bik_ps20[1] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_bik_ps20[1] =
|
||||
{
|
||||
{ "VERTEXALPHA", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t bik_ps20_combos =
|
||||
{
|
||||
"bik_ps20", s_DynamicComboArray_bik_ps20, 1, s_StaticComboArray_bik_ps20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_bik_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_bik_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &bik_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_bik_ps20 s_ConstructMe_bik_ps20;
|
||||
127
materialsystem/stdshaders/fxctmp9/bik_ps20b.inc
Normal file
127
materialsystem/stdshaders/fxctmp9/bik_ps20b.inc
Normal file
@@ -0,0 +1,127 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class bik_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nVERTEXALPHA;
|
||||
#ifdef _DEBUG
|
||||
bool m_bVERTEXALPHA;
|
||||
#endif
|
||||
public:
|
||||
void SetVERTEXALPHA( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nVERTEXALPHA = i;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXALPHA = true;
|
||||
#endif
|
||||
}
|
||||
void SetVERTEXALPHA( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nVERTEXALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXALPHA = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bik_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bVERTEXALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nVERTEXALPHA = 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_bVERTEXALPHA;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nVERTEXALPHA ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bik_ps20b psh_forgot_to_set_static_VERTEXALPHA + 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bik_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_bik_ps20b[1] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_bik_ps20b[1] =
|
||||
{
|
||||
{ "VERTEXALPHA", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t bik_ps20b_combos =
|
||||
{
|
||||
"bik_ps20b", s_DynamicComboArray_bik_ps20b, 1, s_StaticComboArray_bik_ps20b, 1
|
||||
};
|
||||
|
||||
class ConstructMe_bik_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_bik_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &bik_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_bik_ps20b s_ConstructMe_bik_ps20b;
|
||||
147
materialsystem/stdshaders/fxctmp9/bik_vs20.inc
Normal file
147
materialsystem/stdshaders/fxctmp9/bik_vs20.inc
Normal file
@@ -0,0 +1,147 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// ( $DOWATERFOG == 0 ) && ( $HARDWAREFOGBLEND == 0 ) && ( $DOPIXELFOG == 0 )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class bik_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bik_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = !g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
}
|
||||
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_bDOPIXELFOG && m_bHARDWAREFOGBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nDOPIXELFOG ) + ( 4 * m_nHARDWAREFOGBLEND ) + 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bik_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_bik_vs20[1] =
|
||||
{
|
||||
{ "DOWATERFOG", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_bik_vs20[2] =
|
||||
{
|
||||
{ "DOPIXELFOG", 0, 1 },
|
||||
{ "HARDWAREFOGBLEND", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t bik_vs20_combos =
|
||||
{
|
||||
"bik_vs20", s_DynamicComboArray_bik_vs20, 1, s_StaticComboArray_bik_vs20, 2
|
||||
};
|
||||
|
||||
class ConstructMe_bik_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_bik_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &bik_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_bik_vs20 s_ConstructMe_bik_vs20;
|
||||
122
materialsystem/stdshaders/fxctmp9/black_ps20.inc
Normal file
122
materialsystem/stdshaders/fxctmp9/black_ps20.inc
Normal file
@@ -0,0 +1,122 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class black_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
black_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = 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_bDOPIXELFOG;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOPIXELFOG ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_black_ps20 0
|
||||
class black_ps20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
black_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#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_black_ps20 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_black_ps20[1] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 0 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_black_ps20[1] =
|
||||
{
|
||||
{ "DOPIXELFOG", 0, 0 },
|
||||
};
|
||||
static const ShaderComboSemantics_t black_ps20_combos =
|
||||
{
|
||||
"black_ps20", s_DynamicComboArray_black_ps20, 1, s_StaticComboArray_black_ps20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_black_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_black_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &black_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_black_ps20 s_ConstructMe_black_ps20;
|
||||
122
materialsystem/stdshaders/fxctmp9/black_ps20b.inc
Normal file
122
materialsystem/stdshaders/fxctmp9/black_ps20b.inc
Normal file
@@ -0,0 +1,122 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class black_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
black_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = 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_bDOPIXELFOG;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOPIXELFOG ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_black_ps20b 0
|
||||
class black_ps20b_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nPIXELFOGTYPE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPIXELFOGTYPE;
|
||||
#endif
|
||||
public:
|
||||
void SetPIXELFOGTYPE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nPIXELFOGTYPE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPIXELFOGTYPE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
black_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#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_black_ps20b 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_black_ps20b[1] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 0 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_black_ps20b[1] =
|
||||
{
|
||||
{ "DOPIXELFOG", 0, 0 },
|
||||
};
|
||||
static const ShaderComboSemantics_t black_ps20b_combos =
|
||||
{
|
||||
"black_ps20b", s_DynamicComboArray_black_ps20b, 1, s_StaticComboArray_black_ps20b, 1
|
||||
};
|
||||
|
||||
class ConstructMe_black_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_black_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &black_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_black_ps20b s_ConstructMe_black_ps20b;
|
||||
173
materialsystem/stdshaders/fxctmp9/black_vs20.inc
Normal file
173
materialsystem/stdshaders/fxctmp9/black_vs20.inc
Normal file
@@ -0,0 +1,173 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class black_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
black_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = 0; ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = !g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
}
|
||||
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_bDOPIXELFOG && m_bHARDWAREFOGBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nDOPIXELFOG ) + ( 2 * m_nHARDWAREFOGBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_black_vs20 0
|
||||
class black_vs20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOWATERFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOWATERFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOWATERFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nDOWATERFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOWATERFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
black_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#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 ) + ( 1 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_black_vs20 vsh_forgot_to_set_dynamic_SKINNING + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_black_vs20[2] =
|
||||
{
|
||||
{ "DOWATERFOG", 0, 0 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_black_vs20[2] =
|
||||
{
|
||||
{ "DOPIXELFOG", 0, 0 },
|
||||
{ "HARDWAREFOGBLEND", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t black_vs20_combos =
|
||||
{
|
||||
"black_vs20", s_DynamicComboArray_black_vs20, 2, s_StaticComboArray_black_vs20, 2
|
||||
};
|
||||
|
||||
class ConstructMe_black_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_black_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &black_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_black_vs20 s_ConstructMe_black_vs20;
|
||||
180
materialsystem/stdshaders/fxctmp9/blob_arm_ps20b.inc
Normal file
180
materialsystem/stdshaders/fxctmp9/blob_arm_ps20b.inc
Normal file
@@ -0,0 +1,180 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class blob_arm_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nSELF_ILLUM_FRESNEL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSELF_ILLUM_FRESNEL;
|
||||
#endif
|
||||
public:
|
||||
void SetSELF_ILLUM_FRESNEL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSELF_ILLUM_FRESNEL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSELF_ILLUM_FRESNEL = true;
|
||||
#endif
|
||||
}
|
||||
void SetSELF_ILLUM_FRESNEL( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSELF_ILLUM_FRESNEL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSELF_ILLUM_FRESNEL = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nPRE_PASS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPRE_PASS;
|
||||
#endif
|
||||
public:
|
||||
void SetPRE_PASS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPRE_PASS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPRE_PASS = true;
|
||||
#endif
|
||||
}
|
||||
void SetPRE_PASS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPRE_PASS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPRE_PASS = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nNORMALMAP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNORMALMAP;
|
||||
#endif
|
||||
public:
|
||||
void SetNORMALMAP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nNORMALMAP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMALMAP = true;
|
||||
#endif
|
||||
}
|
||||
void SetNORMALMAP( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nNORMALMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMALMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nMOVING_PULSES;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMOVING_PULSES;
|
||||
#endif
|
||||
public:
|
||||
void SetMOVING_PULSES( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMOVING_PULSES = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMOVING_PULSES = true;
|
||||
#endif
|
||||
}
|
||||
void SetMOVING_PULSES( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nMOVING_PULSES = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMOVING_PULSES = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blob_arm_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bSELF_ILLUM_FRESNEL = false;
|
||||
#endif // _DEBUG
|
||||
m_nSELF_ILLUM_FRESNEL = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPRE_PASS = false;
|
||||
#endif // _DEBUG
|
||||
m_nPRE_PASS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNORMALMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nNORMALMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMOVING_PULSES = false;
|
||||
#endif // _DEBUG
|
||||
m_nMOVING_PULSES = 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_bSELF_ILLUM_FRESNEL && m_bPRE_PASS && m_bNORMALMAP && m_bMOVING_PULSES;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nSELF_ILLUM_FRESNEL ) + ( 2 * m_nPRE_PASS ) + ( 4 * m_nNORMALMAP ) + ( 8 * m_nMOVING_PULSES ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blob_arm_ps20b psh_forgot_to_set_static_SELF_ILLUM_FRESNEL + psh_forgot_to_set_static_PRE_PASS + psh_forgot_to_set_static_NORMALMAP + psh_forgot_to_set_static_MOVING_PULSES + 0
|
||||
class blob_arm_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blob_arm_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_blob_arm_ps20b 0
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_blob_arm_ps20b[4] =
|
||||
{
|
||||
{ "SELF_ILLUM_FRESNEL", 0, 1 },
|
||||
{ "PRE_PASS", 0, 1 },
|
||||
{ "NORMALMAP", 0, 1 },
|
||||
{ "MOVING_PULSES", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t blob_arm_ps20b_combos =
|
||||
{
|
||||
"blob_arm_ps20b", NULL, 0, s_StaticComboArray_blob_arm_ps20b, 4
|
||||
};
|
||||
|
||||
class ConstructMe_blob_arm_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_blob_arm_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &blob_arm_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_blob_arm_ps20b s_ConstructMe_blob_arm_ps20b;
|
||||
118
materialsystem/stdshaders/fxctmp9/blob_arm_vs20.inc
Normal file
118
materialsystem/stdshaders/fxctmp9/blob_arm_vs20.inc
Normal file
@@ -0,0 +1,118 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class blob_arm_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nWIDEN_TIPS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bWIDEN_TIPS;
|
||||
#endif
|
||||
public:
|
||||
void SetWIDEN_TIPS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nWIDEN_TIPS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bWIDEN_TIPS = true;
|
||||
#endif
|
||||
}
|
||||
void SetWIDEN_TIPS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nWIDEN_TIPS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWIDEN_TIPS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blob_arm_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bWIDEN_TIPS = false;
|
||||
#endif // _DEBUG
|
||||
m_nWIDEN_TIPS = 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_bWIDEN_TIPS;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nWIDEN_TIPS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blob_arm_vs20 vsh_forgot_to_set_static_WIDEN_TIPS + 0
|
||||
class blob_arm_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCOMPRESSED_VERTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blob_arm_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOMPRESSED_VERTS = 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;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_blob_arm_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_blob_arm_vs20[1] =
|
||||
{
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_blob_arm_vs20[1] =
|
||||
{
|
||||
{ "WIDEN_TIPS", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t blob_arm_vs20_combos =
|
||||
{
|
||||
"blob_arm_vs20", s_DynamicComboArray_blob_arm_vs20, 1, s_StaticComboArray_blob_arm_vs20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_blob_arm_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_blob_arm_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &blob_arm_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_blob_arm_vs20 s_ConstructMe_blob_arm_vs20;
|
||||
470
materialsystem/stdshaders/fxctmp9/blob_ps30.inc
Normal file
470
materialsystem/stdshaders/fxctmp9/blob_ps30.inc
Normal file
@@ -0,0 +1,470 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $CONTACT_SHADOW == 1 ) && ( $SELF_ILLUM_PULSE == 1 )
|
||||
// ( $BACK_SURFACE == 1 ) && ( $LIGHT_WARP > 0 )
|
||||
// ( $BACK_SURFACE == 1 ) && ( $FRESNEL_WARP > 0 )
|
||||
// ( $BACK_SURFACE == 1 ) && ( $INTERIOR_LAYER > 0 )
|
||||
// ( $BACK_SURFACE == 1 ) && ( $SELF_ILLUM_FRESNEL > 0 )
|
||||
// ( $BACK_SURFACE == 1 ) && ( $OPACITY_TEXTURE > 0 )
|
||||
// ( $BACK_SURFACE == 1 ) && ( $CONTACT_SHADOW > 0 )
|
||||
// ( $BACK_SURFACE == 1 ) && ( $SELF_ILLUM_PULSE > 0 )
|
||||
// ( $BACK_SURFACE == 1 ) && ( $VOLUME_TEXTURE > 0 )
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class blob_ps30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nBACK_SURFACE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBACK_SURFACE;
|
||||
#endif
|
||||
public:
|
||||
void SetBACK_SURFACE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBACK_SURFACE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBACK_SURFACE = true;
|
||||
#endif
|
||||
}
|
||||
void SetBACK_SURFACE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBACK_SURFACE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBACK_SURFACE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nLIGHT_WARP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bLIGHT_WARP;
|
||||
#endif
|
||||
public:
|
||||
void SetLIGHT_WARP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nLIGHT_WARP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_WARP = true;
|
||||
#endif
|
||||
}
|
||||
void SetLIGHT_WARP( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nLIGHT_WARP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_WARP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFRESNEL_WARP;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFRESNEL_WARP;
|
||||
#endif
|
||||
public:
|
||||
void SetFRESNEL_WARP( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFRESNEL_WARP = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNEL_WARP = true;
|
||||
#endif
|
||||
}
|
||||
void SetFRESNEL_WARP( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFRESNEL_WARP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNEL_WARP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHIGH_PRECISION_DEPTH;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHIGH_PRECISION_DEPTH;
|
||||
#endif
|
||||
public:
|
||||
void SetHIGH_PRECISION_DEPTH( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHIGH_PRECISION_DEPTH = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHIGH_PRECISION_DEPTH = true;
|
||||
#endif
|
||||
}
|
||||
void SetHIGH_PRECISION_DEPTH( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nHIGH_PRECISION_DEPTH = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHIGH_PRECISION_DEPTH = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nINTERIOR_LAYER;
|
||||
#ifdef _DEBUG
|
||||
bool m_bINTERIOR_LAYER;
|
||||
#endif
|
||||
public:
|
||||
void SetINTERIOR_LAYER( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nINTERIOR_LAYER = i;
|
||||
#ifdef _DEBUG
|
||||
m_bINTERIOR_LAYER = true;
|
||||
#endif
|
||||
}
|
||||
void SetINTERIOR_LAYER( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nINTERIOR_LAYER = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bINTERIOR_LAYER = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSELF_ILLUM_FRESNEL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSELF_ILLUM_FRESNEL;
|
||||
#endif
|
||||
public:
|
||||
void SetSELF_ILLUM_FRESNEL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSELF_ILLUM_FRESNEL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSELF_ILLUM_FRESNEL = true;
|
||||
#endif
|
||||
}
|
||||
void SetSELF_ILLUM_FRESNEL( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSELF_ILLUM_FRESNEL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSELF_ILLUM_FRESNEL = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nOPACITY_TEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bOPACITY_TEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetOPACITY_TEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nOPACITY_TEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bOPACITY_TEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetOPACITY_TEXTURE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nOPACITY_TEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bOPACITY_TEXTURE = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
|
||||
m_nFLASHLIGHTDEPTHFILTERMODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTDEPTHFILTERMODE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCONTACT_SHADOW;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONTACT_SHADOW;
|
||||
#endif
|
||||
public:
|
||||
void SetCONTACT_SHADOW( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONTACT_SHADOW = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONTACT_SHADOW = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONTACT_SHADOW( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCONTACT_SHADOW = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONTACT_SHADOW = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSELF_ILLUM_PULSE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSELF_ILLUM_PULSE;
|
||||
#endif
|
||||
public:
|
||||
void SetSELF_ILLUM_PULSE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSELF_ILLUM_PULSE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSELF_ILLUM_PULSE = true;
|
||||
#endif
|
||||
}
|
||||
void SetSELF_ILLUM_PULSE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSELF_ILLUM_PULSE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSELF_ILLUM_PULSE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nVOLUME_TEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bVOLUME_TEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetVOLUME_TEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nVOLUME_TEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bVOLUME_TEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetVOLUME_TEXTURE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nVOLUME_TEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVOLUME_TEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blob_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bBACK_SURFACE = false;
|
||||
#endif // _DEBUG
|
||||
m_nBACK_SURFACE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHT_WARP = false;
|
||||
#endif // _DEBUG
|
||||
m_nLIGHT_WARP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNEL_WARP = false;
|
||||
#endif // _DEBUG
|
||||
m_nFRESNEL_WARP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHIGH_PRECISION_DEPTH = false;
|
||||
#endif // _DEBUG
|
||||
m_nHIGH_PRECISION_DEPTH = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bINTERIOR_LAYER = false;
|
||||
#endif // _DEBUG
|
||||
m_nINTERIOR_LAYER = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSELF_ILLUM_FRESNEL = false;
|
||||
#endif // _DEBUG
|
||||
m_nSELF_ILLUM_FRESNEL = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bOPACITY_TEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nOPACITY_TEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTDEPTHFILTERMODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLASHLIGHTDEPTHFILTERMODE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONTACT_SHADOW = false;
|
||||
#endif // _DEBUG
|
||||
m_nCONTACT_SHADOW = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSELF_ILLUM_PULSE = false;
|
||||
#endif // _DEBUG
|
||||
m_nSELF_ILLUM_PULSE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVOLUME_TEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nVOLUME_TEXTURE = 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_bBACK_SURFACE && m_bLIGHT_WARP && m_bFRESNEL_WARP && m_bHIGH_PRECISION_DEPTH && m_bINTERIOR_LAYER && m_bSELF_ILLUM_FRESNEL && m_bOPACITY_TEXTURE && m_bFLASHLIGHTDEPTHFILTERMODE && m_bCONTACT_SHADOW && m_bSELF_ILLUM_PULSE && m_bVOLUME_TEXTURE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 20 * m_nBACK_SURFACE ) + ( 40 * m_nLIGHT_WARP ) + ( 80 * m_nFRESNEL_WARP ) + ( 160 * m_nHIGH_PRECISION_DEPTH ) + ( 320 * m_nINTERIOR_LAYER ) + ( 640 * m_nSELF_ILLUM_FRESNEL ) + ( 1280 * m_nOPACITY_TEXTURE ) + ( 2560 * m_nFLASHLIGHTDEPTHFILTERMODE ) + ( 7680 * m_nCONTACT_SHADOW ) + ( 15360 * m_nSELF_ILLUM_PULSE ) + ( 30720 * m_nVOLUME_TEXTURE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blob_ps30 psh_forgot_to_set_static_BACK_SURFACE + psh_forgot_to_set_static_LIGHT_WARP + psh_forgot_to_set_static_FRESNEL_WARP + psh_forgot_to_set_static_HIGH_PRECISION_DEPTH + psh_forgot_to_set_static_INTERIOR_LAYER + psh_forgot_to_set_static_SELF_ILLUM_FRESNEL + psh_forgot_to_set_static_OPACITY_TEXTURE + psh_forgot_to_set_static_FLASHLIGHTDEPTHFILTERMODE + psh_forgot_to_set_static_CONTACT_SHADOW + psh_forgot_to_set_static_SELF_ILLUM_PULSE + psh_forgot_to_set_static_VOLUME_TEXTURE + 0
|
||||
class blob_ps30_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLASHLIGHT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLASHLIGHTSHADOWS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTSHADOWS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blob_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLASHLIGHT = 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_bNUM_LIGHTS && m_bFLASHLIGHT && m_bFLASHLIGHTSHADOWS;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nNUM_LIGHTS ) + ( 5 * m_nFLASHLIGHT ) + ( 10 * m_nFLASHLIGHTSHADOWS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_blob_ps30 psh_forgot_to_set_dynamic_NUM_LIGHTS + psh_forgot_to_set_dynamic_FLASHLIGHT + psh_forgot_to_set_dynamic_FLASHLIGHTSHADOWS + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_blob_ps30[3] =
|
||||
{
|
||||
{ "NUM_LIGHTS", 0, 4 },
|
||||
{ "FLASHLIGHT", 0, 1 },
|
||||
{ "FLASHLIGHTSHADOWS", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_blob_ps30[11] =
|
||||
{
|
||||
{ "BACK_SURFACE", 0, 1 },
|
||||
{ "LIGHT_WARP", 0, 1 },
|
||||
{ "FRESNEL_WARP", 0, 1 },
|
||||
{ "HIGH_PRECISION_DEPTH", 0, 1 },
|
||||
{ "INTERIOR_LAYER", 0, 1 },
|
||||
{ "SELF_ILLUM_FRESNEL", 0, 1 },
|
||||
{ "OPACITY_TEXTURE", 0, 1 },
|
||||
{ "FLASHLIGHTDEPTHFILTERMODE", 0, 2 },
|
||||
{ "CONTACT_SHADOW", 0, 1 },
|
||||
{ "SELF_ILLUM_PULSE", 0, 1 },
|
||||
{ "VOLUME_TEXTURE", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t blob_ps30_combos =
|
||||
{
|
||||
"blob_ps30", s_DynamicComboArray_blob_ps30, 3, s_StaticComboArray_blob_ps30, 11
|
||||
};
|
||||
|
||||
class ConstructMe_blob_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_blob_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &blob_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_blob_ps30 s_ConstructMe_blob_ps30;
|
||||
172
materialsystem/stdshaders/fxctmp9/blob_vs30.inc
Normal file
172
materialsystem/stdshaders/fxctmp9/blob_vs30.inc
Normal file
@@ -0,0 +1,172 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class blob_vs30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCONTACT_SHADOW;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCONTACT_SHADOW;
|
||||
#endif
|
||||
public:
|
||||
void SetCONTACT_SHADOW( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCONTACT_SHADOW = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCONTACT_SHADOW = true;
|
||||
#endif
|
||||
}
|
||||
void SetCONTACT_SHADOW( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCONTACT_SHADOW = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCONTACT_SHADOW = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nVOLUME_TEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bVOLUME_TEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetVOLUME_TEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nVOLUME_TEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bVOLUME_TEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetVOLUME_TEXTURE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nVOLUME_TEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVOLUME_TEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blob_vs30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCONTACT_SHADOW = false;
|
||||
#endif // _DEBUG
|
||||
m_nCONTACT_SHADOW = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bVOLUME_TEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nVOLUME_TEXTURE = 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_bCONTACT_SHADOW && m_bVOLUME_TEXTURE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 4 * m_nCONTACT_SHADOW ) + ( 8 * m_nVOLUME_TEXTURE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_blob_vs30 vsh_forgot_to_set_static_CONTACT_SHADOW + vsh_forgot_to_set_static_VOLUME_TEXTURE + 0
|
||||
class blob_vs30_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blob_vs30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#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_blob_vs30 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_blob_vs30[2] =
|
||||
{
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_blob_vs30[2] =
|
||||
{
|
||||
{ "CONTACT_SHADOW", 0, 1 },
|
||||
{ "VOLUME_TEXTURE", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t blob_vs30_combos =
|
||||
{
|
||||
"blob_vs30", s_DynamicComboArray_blob_vs30, 2, s_StaticComboArray_blob_vs30, 2
|
||||
};
|
||||
|
||||
class ConstructMe_blob_vs30
|
||||
{
|
||||
public:
|
||||
ConstructMe_blob_vs30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &blob_vs30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_blob_vs30 s_ConstructMe_blob_vs30;
|
||||
56
materialsystem/stdshaders/fxctmp9/bloomadd_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/bloomadd_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class bloomadd_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bloomadd_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
bloomadd_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t bloomadd_ps20_combos =
|
||||
{
|
||||
"bloomadd_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_bloomadd_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_bloomadd_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &bloomadd_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_bloomadd_ps20 s_ConstructMe_bloomadd_ps20;
|
||||
56
materialsystem/stdshaders/fxctmp9/bloomadd_ps20b.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/bloomadd_ps20b.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class bloomadd_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bloomadd_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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:
|
||||
// CONSTRUCTOR
|
||||
bloomadd_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
static const ShaderComboSemantics_t bloomadd_ps20b_combos =
|
||||
{
|
||||
"bloomadd_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_bloomadd_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_bloomadd_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &bloomadd_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_bloomadd_ps20b s_ConstructMe_bloomadd_ps20b;
|
||||
51
materialsystem/stdshaders/fxctmp9/blurentity_ps20.inc
Normal file
51
materialsystem/stdshaders/fxctmp9/blurentity_ps20.inc
Normal file
@@ -0,0 +1,51 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurentity_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurentity_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_blurentity_ps20 0
|
||||
class blurentity_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurentity_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_blurentity_ps20 0
|
||||
static const ShaderComboSemantics_t blurentity_ps20_combos =
|
||||
{
|
||||
"blurentity_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_blurentity_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_blurentity_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &blurentity_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_blurentity_ps20 s_ConstructMe_blurentity_ps20;
|
||||
51
materialsystem/stdshaders/fxctmp9/blurentity_ps20b.inc
Normal file
51
materialsystem/stdshaders/fxctmp9/blurentity_ps20b.inc
Normal file
@@ -0,0 +1,51 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurentity_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurentity_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_blurentity_ps20b 0
|
||||
class blurentity_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurentity_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_blurentity_ps20b 0
|
||||
static const ShaderComboSemantics_t blurentity_ps20b_combos =
|
||||
{
|
||||
"blurentity_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_blurentity_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_blurentity_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &blurentity_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_blurentity_ps20b s_ConstructMe_blurentity_ps20b;
|
||||
51
materialsystem/stdshaders/fxctmp9/blurgaussian_3x3_ps20.inc
Normal file
51
materialsystem/stdshaders/fxctmp9/blurgaussian_3x3_ps20.inc
Normal file
@@ -0,0 +1,51 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurgaussian_3x3_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurgaussian_3x3_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_blurgaussian_3x3_ps20 0
|
||||
class blurgaussian_3x3_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurgaussian_3x3_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_blurgaussian_3x3_ps20 0
|
||||
static const ShaderComboSemantics_t blurgaussian_3x3_ps20_combos =
|
||||
{
|
||||
"blurgaussian_3x3_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_blurgaussian_3x3_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_blurgaussian_3x3_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &blurgaussian_3x3_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_blurgaussian_3x3_ps20 s_ConstructMe_blurgaussian_3x3_ps20;
|
||||
51
materialsystem/stdshaders/fxctmp9/blurgaussian_3x3_ps20b.inc
Normal file
51
materialsystem/stdshaders/fxctmp9/blurgaussian_3x3_ps20b.inc
Normal file
@@ -0,0 +1,51 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
#include "shaderlib/cshader.h"
|
||||
class blurgaussian_3x3_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurgaussian_3x3_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_blurgaussian_3x3_ps20b 0
|
||||
class blurgaussian_3x3_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
blurgaussian_3x3_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_blurgaussian_3x3_ps20b 0
|
||||
static const ShaderComboSemantics_t blurgaussian_3x3_ps20b_combos =
|
||||
{
|
||||
"blurgaussian_3x3_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_blurgaussian_3x3_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_blurgaussian_3x3_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &blurgaussian_3x3_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_blurgaussian_3x3_ps20b s_ConstructMe_blurgaussian_3x3_ps20b;
|
||||
@@ -0,0 +1,89 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class bufferclearobeystencil_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nRELOADZCULL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bRELOADZCULL;
|
||||
#endif
|
||||
public:
|
||||
void SetRELOADZCULL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nRELOADZCULL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bRELOADZCULL = true;
|
||||
#endif
|
||||
}
|
||||
void SetRELOADZCULL( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nRELOADZCULL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bRELOADZCULL = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bufferclearobeystencil_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bRELOADZCULL = false;
|
||||
#endif // _DEBUG
|
||||
m_nRELOADZCULL = 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_bRELOADZCULL;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nRELOADZCULL ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bufferclearobeystencil_ps20 psh_forgot_to_set_static_RELOADZCULL + 0
|
||||
class bufferclearobeystencil_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bufferclearobeystencil_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_bufferclearobeystencil_ps20[1] =
|
||||
{
|
||||
{ "RELOADZCULL", 0, 0 },
|
||||
};
|
||||
static const ShaderComboSemantics_t bufferclearobeystencil_ps20_combos =
|
||||
{
|
||||
"bufferclearobeystencil_ps20", NULL, 0, s_StaticComboArray_bufferclearobeystencil_ps20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_bufferclearobeystencil_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_bufferclearobeystencil_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &bufferclearobeystencil_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_bufferclearobeystencil_ps20 s_ConstructMe_bufferclearobeystencil_ps20;
|
||||
@@ -0,0 +1,89 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class bufferclearobeystencil_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nRELOADZCULL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bRELOADZCULL;
|
||||
#endif
|
||||
public:
|
||||
void SetRELOADZCULL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nRELOADZCULL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bRELOADZCULL = true;
|
||||
#endif
|
||||
}
|
||||
void SetRELOADZCULL( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nRELOADZCULL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bRELOADZCULL = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bufferclearobeystencil_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bRELOADZCULL = false;
|
||||
#endif // _DEBUG
|
||||
m_nRELOADZCULL = 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_bRELOADZCULL;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nRELOADZCULL ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_bufferclearobeystencil_ps20b psh_forgot_to_set_static_RELOADZCULL + 0
|
||||
class bufferclearobeystencil_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bufferclearobeystencil_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_bufferclearobeystencil_ps20b[1] =
|
||||
{
|
||||
{ "RELOADZCULL", 0, 0 },
|
||||
};
|
||||
static const ShaderComboSemantics_t bufferclearobeystencil_ps20b_combos =
|
||||
{
|
||||
"bufferclearobeystencil_ps20b", NULL, 0, s_StaticComboArray_bufferclearobeystencil_ps20b, 1
|
||||
};
|
||||
|
||||
class ConstructMe_bufferclearobeystencil_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_bufferclearobeystencil_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &bufferclearobeystencil_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_bufferclearobeystencil_ps20b s_ConstructMe_bufferclearobeystencil_ps20b;
|
||||
@@ -0,0 +1,85 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSESCOLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSESCOLOR = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
bufferclearobeystencil_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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:
|
||||
// CONSTRUCTOR
|
||||
bufferclearobeystencil_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_bufferclearobeystencil_vs20[1] =
|
||||
{
|
||||
{ "USESCOLOR", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t bufferclearobeystencil_vs20_combos =
|
||||
{
|
||||
"bufferclearobeystencil_vs20", NULL, 0, s_StaticComboArray_bufferclearobeystencil_vs20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_bufferclearobeystencil_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_bufferclearobeystencil_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &bufferclearobeystencil_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_bufferclearobeystencil_vs20 s_ConstructMe_bufferclearobeystencil_vs20;
|
||||
94
materialsystem/stdshaders/fxctmp9/cable_ps20.inc
Normal file
94
materialsystem/stdshaders/fxctmp9/cable_ps20.inc
Normal file
@@ -0,0 +1,94 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cable_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cable_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cable_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cable_ps20[1] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cable_ps20_combos =
|
||||
{
|
||||
"cable_ps20", s_DynamicComboArray_cable_ps20, 1, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_cable_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_cable_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cable_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cable_ps20 s_ConstructMe_cable_ps20;
|
||||
121
materialsystem/stdshaders/fxctmp9/cable_ps20b.inc
Normal file
121
materialsystem/stdshaders/fxctmp9/cable_ps20b.inc
Normal file
@@ -0,0 +1,121 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cable_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cable_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_ps20b 0
|
||||
class cable_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cable_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = 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 && m_bWRITE_DEPTH_TO_DESTALPHA;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + ( 2 * m_nWRITE_DEPTH_TO_DESTALPHA ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cable_ps20b psh_forgot_to_set_dynamic_WRITE_DEPTH_TO_DESTALPHA + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cable_ps20b[2] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
{ "WRITE_DEPTH_TO_DESTALPHA", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cable_ps20b_combos =
|
||||
{
|
||||
"cable_ps20b", s_DynamicComboArray_cable_ps20b, 2, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_cable_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_cable_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cable_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cable_ps20b s_ConstructMe_cable_ps20b;
|
||||
147
materialsystem/stdshaders/fxctmp9/cable_vs20.inc
Normal file
147
materialsystem/stdshaders/fxctmp9/cable_vs20.inc
Normal file
@@ -0,0 +1,147 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// ( $DOWATERFOG == 0 ) && ( $HARDWAREFOGBLEND == 0 ) && ( $DOPIXELFOG == 0 )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class cable_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cable_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = !g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
}
|
||||
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_bDOPIXELFOG && m_bHARDWAREFOGBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 2 * m_nDOPIXELFOG ) + ( 4 * m_nHARDWAREFOGBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cable_vs20 0
|
||||
class cable_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cable_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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_cable_vs20 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cable_vs20[1] =
|
||||
{
|
||||
{ "DOWATERFOG", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cable_vs20[2] =
|
||||
{
|
||||
{ "DOPIXELFOG", 0, 1 },
|
||||
{ "HARDWAREFOGBLEND", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cable_vs20_combos =
|
||||
{
|
||||
"cable_vs20", s_DynamicComboArray_cable_vs20, 1, s_StaticComboArray_cable_vs20, 2
|
||||
};
|
||||
|
||||
class ConstructMe_cable_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_cable_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cable_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cable_vs20 s_ConstructMe_cable_vs20;
|
||||
488
materialsystem/stdshaders/fxctmp9/character_ps20b.inc
Normal file
488
materialsystem/stdshaders/fxctmp9/character_ps20b.inc
Normal file
@@ -0,0 +1,488 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $AMBIENTREFLECTION == 0 ) && ( $USEBOUNCECOLOR == 1 )
|
||||
// ( $BASEALPHAENVMASK == 1 ) && ( $ENVMAP == 0 )
|
||||
// ( $BUMPALPHAENVMASK == 1 ) && ( $ENVMAP == 0 )
|
||||
// ( $BASEALPHAENVMASK == 1 ) && ( $BUMPALPHAENVMASK == 1 )
|
||||
// ( $BASEALPHASELFILLUMMASK == 1) && ( $BASEALPHAENVMASK == 1 )
|
||||
// ( $BASEALPHASELFILLUMMASK == 1) && ( $BASEALPHAPHONGMASK == 1 )
|
||||
// ( $BASEALPHAENVMASK == 1 ) && ( $BASEALPHASELFILLUMMASK )
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $DYN_CSM_ENABLED == 1 )
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $CSM_MODE != 0 )
|
||||
// ( $AMBIENTREFLECTION == 0 ) && ( $USEBOUNCECOLOR == 1 )
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class character_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nMASKS1;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMASKS1;
|
||||
#endif
|
||||
public:
|
||||
void SetMASKS1( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMASKS1 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS1 = true;
|
||||
#endif
|
||||
}
|
||||
void SetMASKS1( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nMASKS1 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS1 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nMASKS2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMASKS2;
|
||||
#endif
|
||||
public:
|
||||
void SetMASKS2( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMASKS2 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS2 = true;
|
||||
#endif
|
||||
}
|
||||
void SetMASKS2( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nMASKS2 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS2 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFRESNELRANGESTEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFRESNELRANGESTEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetFRESNELRANGESTEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFRESNELRANGESTEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNELRANGESTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetFRESNELRANGESTEXTURE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFRESNELRANGESTEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNELRANGESTEXTURE = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nENVMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nAMBIENTREFLECTION;
|
||||
#ifdef _DEBUG
|
||||
bool m_bAMBIENTREFLECTION;
|
||||
#endif
|
||||
public:
|
||||
void SetAMBIENTREFLECTION( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nAMBIENTREFLECTION = i;
|
||||
#ifdef _DEBUG
|
||||
m_bAMBIENTREFLECTION = true;
|
||||
#endif
|
||||
}
|
||||
void SetAMBIENTREFLECTION( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nAMBIENTREFLECTION = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bAMBIENTREFLECTION = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBASEALPHAENVMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASEALPHAENVMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBASEALPHAENVMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASEALPHAENVMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBASEALPHAENVMASK( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBASEALPHAENVMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBUMPALPHAENVMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBUMPALPHAENVMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBUMPALPHAENVMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBUMPALPHAENVMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBUMPALPHAENVMASK( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBUMPALPHAENVMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBASEALPHASELFILLUMMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASEALPHASELFILLUMMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBASEALPHASELFILLUMMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASEALPHASELFILLUMMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHASELFILLUMMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBASEALPHASELFILLUMMASK( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBASEALPHASELFILLUMMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHASELFILLUMMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFAKERIM;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFAKERIM;
|
||||
#endif
|
||||
public:
|
||||
void SetFAKERIM( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFAKERIM = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFAKERIM = true;
|
||||
#endif
|
||||
}
|
||||
void SetFAKERIM( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFAKERIM = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFAKERIM = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCASCADED_SHADOW_MAPPING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCASCADED_SHADOW_MAPPING;
|
||||
#endif
|
||||
public:
|
||||
void SetCASCADED_SHADOW_MAPPING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCASCADED_SHADOW_MAPPING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = true;
|
||||
#endif
|
||||
}
|
||||
void SetCASCADED_SHADOW_MAPPING( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCASCADED_SHADOW_MAPPING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS1 = false;
|
||||
#endif // _DEBUG
|
||||
m_nMASKS1 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS2 = false;
|
||||
#endif // _DEBUG
|
||||
m_nMASKS2 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNELRANGESTEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nFRESNELRANGESTEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nENVMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bAMBIENTREFLECTION = false;
|
||||
#endif // _DEBUG
|
||||
m_nAMBIENTREFLECTION = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASEALPHAENVMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPALPHAENVMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBUMPALPHAENVMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHASELFILLUMMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASEALPHASELFILLUMMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFAKERIM = false;
|
||||
#endif // _DEBUG
|
||||
m_nFAKERIM = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = false;
|
||||
#endif // _DEBUG
|
||||
m_nCASCADED_SHADOW_MAPPING = 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_bMASKS1 && m_bMASKS2 && m_bFRESNELRANGESTEXTURE && m_bENVMAP && m_bAMBIENTREFLECTION && m_bBASEALPHAENVMASK && m_bBUMPALPHAENVMASK && m_bBASEALPHASELFILLUMMASK && m_bFAKERIM && m_bCASCADED_SHADOW_MAPPING;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 80 * m_nMASKS1 ) + ( 160 * m_nMASKS2 ) + ( 320 * m_nFRESNELRANGESTEXTURE ) + ( 640 * m_nENVMAP ) + ( 1280 * m_nAMBIENTREFLECTION ) + ( 2560 * m_nBASEALPHAENVMASK ) + ( 5120 * m_nBUMPALPHAENVMASK ) + ( 10240 * m_nBASEALPHASELFILLUMMASK ) + ( 20480 * m_nFAKERIM ) + ( 40960 * m_nCASCADED_SHADOW_MAPPING ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_character_ps20b psh_forgot_to_set_static_MASKS1 + psh_forgot_to_set_static_MASKS2 + psh_forgot_to_set_static_FRESNELRANGESTEXTURE + psh_forgot_to_set_static_ENVMAP + psh_forgot_to_set_static_AMBIENTREFLECTION + psh_forgot_to_set_static_BASEALPHAENVMASK + psh_forgot_to_set_static_BUMPALPHAENVMASK + psh_forgot_to_set_static_BASEALPHASELFILLUMMASK + psh_forgot_to_set_static_FAKERIM + psh_forgot_to_set_static_CASCADED_SHADOW_MAPPING + 0
|
||||
class character_ps20b_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDYN_CSM_ENABLED;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDYN_CSM_ENABLED;
|
||||
#endif
|
||||
public:
|
||||
void SetDYN_CSM_ENABLED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDYN_CSM_ENABLED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = true;
|
||||
#endif
|
||||
}
|
||||
void SetDYN_CSM_ENABLED( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDYN_CSM_ENABLED = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = false;
|
||||
#endif // _DEBUG
|
||||
m_nDYN_CSM_ENABLED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITEWATERFOGTODESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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_bNUM_LIGHTS && m_bDYN_CSM_ENABLED && m_bWRITE_DEPTH_TO_DESTALPHA && m_bWRITEWATERFOGTODESTALPHA && m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nNUM_LIGHTS ) + ( 5 * m_nDYN_CSM_ENABLED ) + ( 10 * m_nWRITE_DEPTH_TO_DESTALPHA ) + ( 20 * m_nWRITEWATERFOGTODESTALPHA ) + ( 40 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_character_ps20b psh_forgot_to_set_dynamic_NUM_LIGHTS + psh_forgot_to_set_dynamic_DYN_CSM_ENABLED + psh_forgot_to_set_dynamic_WRITE_DEPTH_TO_DESTALPHA + psh_forgot_to_set_dynamic_WRITEWATERFOGTODESTALPHA + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_character_ps20b[5] =
|
||||
{
|
||||
{ "NUM_LIGHTS", 0, 4 },
|
||||
{ "DYN_CSM_ENABLED", 0, 1 },
|
||||
{ "WRITE_DEPTH_TO_DESTALPHA", 0, 1 },
|
||||
{ "WRITEWATERFOGTODESTALPHA", 0, 1 },
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_character_ps20b[10] =
|
||||
{
|
||||
{ "MASKS1", 0, 1 },
|
||||
{ "MASKS2", 0, 1 },
|
||||
{ "FRESNELRANGESTEXTURE", 0, 1 },
|
||||
{ "ENVMAP", 0, 1 },
|
||||
{ "AMBIENTREFLECTION", 0, 1 },
|
||||
{ "BASEALPHAENVMASK", 0, 1 },
|
||||
{ "BUMPALPHAENVMASK", 0, 1 },
|
||||
{ "BASEALPHASELFILLUMMASK", 0, 1 },
|
||||
{ "FAKERIM", 0, 1 },
|
||||
{ "CASCADED_SHADOW_MAPPING", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t character_ps20b_combos =
|
||||
{
|
||||
"character_ps20b", s_DynamicComboArray_character_ps20b, 5, s_StaticComboArray_character_ps20b, 10
|
||||
};
|
||||
|
||||
class ConstructMe_character_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_character_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &character_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_character_ps20b s_ConstructMe_character_ps20b;
|
||||
775
materialsystem/stdshaders/fxctmp9/character_ps30.inc
Normal file
775
materialsystem/stdshaders/fxctmp9/character_ps30.inc
Normal file
@@ -0,0 +1,775 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $AMBIENTREFLECTION == 0 ) && ( $USEBOUNCECOLOR == 1 )
|
||||
// ( $BASEALPHAENVMASK == 1 ) && ( $ENVMAP == 0 )
|
||||
// ( $BUMPALPHAENVMASK == 1 ) && ( $ENVMAP == 0 )
|
||||
// ( $BASEALPHAENVMASK == 1 ) && ( $BUMPALPHAENVMASK == 1 )
|
||||
// ( $BASEALPHASELFILLUMMASK == 1) && ( $BASEALPHAENVMASK == 1 )
|
||||
// ( $BASEALPHASELFILLUMMASK == 1) && ( $BASEALPHAPHONGMASK == 1 )
|
||||
// ( $BASEALPHAENVMASK == 1 ) && ( $BASEALPHASELFILLUMMASK )
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $DYN_CSM_ENABLED == 1 )
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $CSM_MODE != 0 )
|
||||
// ( $DOPREVIEW == 0 ) && ( $USEPATTERN != 0 )
|
||||
// ( $DOPREVIEW == 1 ) && ( $USEBOUNCECOLOR == 1 )
|
||||
// ( $DOPREVIEW == 1 ) && ( $BASEALPHASELFILLUMMASK == 1)
|
||||
// ( $DOPREVIEW == 1 ) && ( $FAKERIM == 1 )
|
||||
// ( $DOPREVIEW == 1 ) && ( $CSM_MODE > 0 )
|
||||
// ( $DOPREVIEW == 1 ) && ( $DYN_CSM_ENALBED == 1 )
|
||||
// ( $DOPREVIEW == 1 ) && ( $NUM_LIGHTS > 1 )
|
||||
// ( $DOPREVIEW == 1 ) && ( $FLASHLIGHT == 1 )
|
||||
// ( $CASCADED_SHADOW_MAPPING > 0) && ( $FLASHLIGHT == 1 )
|
||||
// ( $DYN_CSM_ENALBED == 1 ) && ( $FLASHLIGHT == 1 )
|
||||
// ( $CSM_MODE > 0 ) && ( $FLASHLIGHT == 1 )
|
||||
// ( $FLASHLIGHTDEPTHFILTERMODE > 0 ) && ( $FLASHLIGHT == 0 )
|
||||
// ( $FLASHLIGHT == 1 ) && ( $FAKERIM == 1 )
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class character_ps30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nMASKS1;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMASKS1;
|
||||
#endif
|
||||
public:
|
||||
void SetMASKS1( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMASKS1 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS1 = true;
|
||||
#endif
|
||||
}
|
||||
void SetMASKS1( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nMASKS1 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS1 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nMASKS2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMASKS2;
|
||||
#endif
|
||||
public:
|
||||
void SetMASKS2( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMASKS2 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS2 = true;
|
||||
#endif
|
||||
}
|
||||
void SetMASKS2( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nMASKS2 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS2 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFRESNELRANGESTEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFRESNELRANGESTEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetFRESNELRANGESTEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFRESNELRANGESTEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNELRANGESTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetFRESNELRANGESTEXTURE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFRESNELRANGESTEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNELRANGESTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nPHONGWARPTEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bPHONGWARPTEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetPHONGWARPTEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nPHONGWARPTEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bPHONGWARPTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetPHONGWARPTEXTURE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPHONGWARPTEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPHONGWARPTEXTURE = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nENVMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nAMBIENTREFLECTION;
|
||||
#ifdef _DEBUG
|
||||
bool m_bAMBIENTREFLECTION;
|
||||
#endif
|
||||
public:
|
||||
void SetAMBIENTREFLECTION( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nAMBIENTREFLECTION = i;
|
||||
#ifdef _DEBUG
|
||||
m_bAMBIENTREFLECTION = true;
|
||||
#endif
|
||||
}
|
||||
void SetAMBIENTREFLECTION( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nAMBIENTREFLECTION = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bAMBIENTREFLECTION = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSEBOUNCECOLOR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSEBOUNCECOLOR;
|
||||
#endif
|
||||
public:
|
||||
void SetUSEBOUNCECOLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSEBOUNCECOLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEBOUNCECOLOR = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSEBOUNCECOLOR( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSEBOUNCECOLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEBOUNCECOLOR = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nANISOTROPY;
|
||||
#ifdef _DEBUG
|
||||
bool m_bANISOTROPY;
|
||||
#endif
|
||||
public:
|
||||
void SetANISOTROPY( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nANISOTROPY = i;
|
||||
#ifdef _DEBUG
|
||||
m_bANISOTROPY = true;
|
||||
#endif
|
||||
}
|
||||
void SetANISOTROPY( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nANISOTROPY = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bANISOTROPY = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBASEALPHAPHONGMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASEALPHAPHONGMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBASEALPHAPHONGMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASEALPHAPHONGMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAPHONGMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBASEALPHAPHONGMASK( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBASEALPHAPHONGMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAPHONGMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBASEALPHAENVMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASEALPHAENVMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBASEALPHAENVMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASEALPHAENVMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBASEALPHAENVMASK( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBASEALPHAENVMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBUMPALPHAENVMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBUMPALPHAENVMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBUMPALPHAENVMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBUMPALPHAENVMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBUMPALPHAENVMASK( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBUMPALPHAENVMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSHADOWSATURATION;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSHADOWSATURATION;
|
||||
#endif
|
||||
public:
|
||||
void SetSHADOWSATURATION( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSHADOWSATURATION = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSHADOWSATURATION = true;
|
||||
#endif
|
||||
}
|
||||
void SetSHADOWSATURATION( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSHADOWSATURATION = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSHADOWSATURATION = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBASEALPHASELFILLUMMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASEALPHASELFILLUMMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBASEALPHASELFILLUMMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASEALPHASELFILLUMMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHASELFILLUMMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBASEALPHASELFILLUMMASK( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBASEALPHASELFILLUMMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHASELFILLUMMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFAKERIM;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFAKERIM;
|
||||
#endif
|
||||
public:
|
||||
void SetFAKERIM( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFAKERIM = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFAKERIM = true;
|
||||
#endif
|
||||
}
|
||||
void SetFAKERIM( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFAKERIM = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFAKERIM = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCASCADED_SHADOW_MAPPING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCASCADED_SHADOW_MAPPING;
|
||||
#endif
|
||||
public:
|
||||
void SetCASCADED_SHADOW_MAPPING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCASCADED_SHADOW_MAPPING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = true;
|
||||
#endif
|
||||
}
|
||||
void SetCASCADED_SHADOW_MAPPING( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCASCADED_SHADOW_MAPPING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCSM_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCSM_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetCSM_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 3 );
|
||||
m_nCSM_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetCSM_MODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 3 );
|
||||
m_nCSM_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDOPREVIEW;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPREVIEW;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPREVIEW( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPREVIEW = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPREVIEW = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPREVIEW( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPREVIEW = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPREVIEW = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSEPATTERN;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSEPATTERN;
|
||||
#endif
|
||||
public:
|
||||
void SetUSEPATTERN( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nUSEPATTERN = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEPATTERN = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSEPATTERN( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nUSEPATTERN = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEPATTERN = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLASHLIGHT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLASHLIGHTDEPTHFILTERMODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLASHLIGHTDEPTHFILTERMODE;
|
||||
#endif
|
||||
public:
|
||||
void SetFLASHLIGHTDEPTHFILTERMODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 3 );
|
||||
m_nFLASHLIGHTDEPTHFILTERMODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTDEPTHFILTERMODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLASHLIGHTDEPTHFILTERMODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 3 );
|
||||
m_nFLASHLIGHTDEPTHFILTERMODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHTDEPTHFILTERMODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS1 = false;
|
||||
#endif // _DEBUG
|
||||
m_nMASKS1 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMASKS2 = false;
|
||||
#endif // _DEBUG
|
||||
m_nMASKS2 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFRESNELRANGESTEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nFRESNELRANGESTEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPHONGWARPTEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nPHONGWARPTEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bENVMAP = false;
|
||||
#endif // _DEBUG
|
||||
m_nENVMAP = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bAMBIENTREFLECTION = false;
|
||||
#endif // _DEBUG
|
||||
m_nAMBIENTREFLECTION = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEBOUNCECOLOR = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSEBOUNCECOLOR = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bANISOTROPY = false;
|
||||
#endif // _DEBUG
|
||||
m_nANISOTROPY = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAPHONGMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASEALPHAPHONGMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASEALPHAENVMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPALPHAENVMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBUMPALPHAENVMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSHADOWSATURATION = false;
|
||||
#endif // _DEBUG
|
||||
m_nSHADOWSATURATION = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHASELFILLUMMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASEALPHASELFILLUMMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFAKERIM = false;
|
||||
#endif // _DEBUG
|
||||
m_nFAKERIM = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = false;
|
||||
#endif // _DEBUG
|
||||
m_nCASCADED_SHADOW_MAPPING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nCSM_MODE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPREVIEW = false;
|
||||
#endif // _DEBUG
|
||||
m_nDOPREVIEW = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEPATTERN = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSEPATTERN = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLASHLIGHT = 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_bMASKS1 && m_bMASKS2 && m_bFRESNELRANGESTEXTURE && m_bPHONGWARPTEXTURE && m_bENVMAP && m_bAMBIENTREFLECTION && m_bUSEBOUNCECOLOR && m_bANISOTROPY && m_bBASEALPHAPHONGMASK && m_bBASEALPHAENVMASK && m_bBUMPALPHAENVMASK && m_bSHADOWSATURATION && m_bBASEALPHASELFILLUMMASK && m_bFAKERIM && m_bCASCADED_SHADOW_MAPPING && m_bCSM_MODE && m_bDOPREVIEW && m_bUSEPATTERN && m_bFLASHLIGHT && m_bFLASHLIGHTDEPTHFILTERMODE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 40 * m_nMASKS1 ) + ( 80 * m_nMASKS2 ) + ( 160 * m_nFRESNELRANGESTEXTURE ) + ( 320 * m_nPHONGWARPTEXTURE ) + ( 640 * m_nENVMAP ) + ( 1280 * m_nAMBIENTREFLECTION ) + ( 2560 * m_nUSEBOUNCECOLOR ) + ( 5120 * m_nANISOTROPY ) + ( 10240 * m_nBASEALPHAPHONGMASK ) + ( 20480 * m_nBASEALPHAENVMASK ) + ( 40960 * m_nBUMPALPHAENVMASK ) + ( 81920 * m_nSHADOWSATURATION ) + ( 163840 * m_nBASEALPHASELFILLUMMASK ) + ( 327680 * m_nFAKERIM ) + ( 655360 * m_nCASCADED_SHADOW_MAPPING ) + ( 1310720 * m_nCSM_MODE ) + ( 5242880 * m_nDOPREVIEW ) + ( 10485760 * m_nUSEPATTERN ) + ( 52428800 * m_nFLASHLIGHT ) + ( 104857600 * m_nFLASHLIGHTDEPTHFILTERMODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_character_ps30 psh_forgot_to_set_static_MASKS1 + psh_forgot_to_set_static_MASKS2 + psh_forgot_to_set_static_FRESNELRANGESTEXTURE + psh_forgot_to_set_static_PHONGWARPTEXTURE + psh_forgot_to_set_static_ENVMAP + psh_forgot_to_set_static_AMBIENTREFLECTION + psh_forgot_to_set_static_USEBOUNCECOLOR + psh_forgot_to_set_static_ANISOTROPY + psh_forgot_to_set_static_BASEALPHAPHONGMASK + psh_forgot_to_set_static_BASEALPHAENVMASK + psh_forgot_to_set_static_BUMPALPHAENVMASK + psh_forgot_to_set_static_SHADOWSATURATION + psh_forgot_to_set_static_BASEALPHASELFILLUMMASK + psh_forgot_to_set_static_FAKERIM + psh_forgot_to_set_static_CASCADED_SHADOW_MAPPING + psh_forgot_to_set_static_CSM_MODE + psh_forgot_to_set_static_DOPREVIEW + psh_forgot_to_set_static_USEPATTERN + psh_forgot_to_set_static_FLASHLIGHT + psh_forgot_to_set_static_FLASHLIGHTDEPTHFILTERMODE + 0
|
||||
class character_ps30_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDYN_CSM_ENABLED;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDYN_CSM_ENABLED;
|
||||
#endif
|
||||
public:
|
||||
void SetDYN_CSM_ENABLED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDYN_CSM_ENABLED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = true;
|
||||
#endif
|
||||
}
|
||||
void SetDYN_CSM_ENABLED( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDYN_CSM_ENABLED = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = 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 <= 0 );
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = i;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
void SetWRITE_DEPTH_TO_DESTALPHA( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = false;
|
||||
#endif // _DEBUG
|
||||
m_nDYN_CSM_ENABLED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITE_DEPTH_TO_DESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITE_DEPTH_TO_DESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITEWATERFOGTODESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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_bNUM_LIGHTS && m_bDYN_CSM_ENABLED && m_bWRITE_DEPTH_TO_DESTALPHA && m_bWRITEWATERFOGTODESTALPHA && m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nNUM_LIGHTS ) + ( 5 * m_nDYN_CSM_ENABLED ) + ( 10 * m_nWRITE_DEPTH_TO_DESTALPHA ) + ( 10 * m_nWRITEWATERFOGTODESTALPHA ) + ( 20 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_character_ps30 psh_forgot_to_set_dynamic_NUM_LIGHTS + psh_forgot_to_set_dynamic_DYN_CSM_ENABLED + psh_forgot_to_set_dynamic_WRITE_DEPTH_TO_DESTALPHA + psh_forgot_to_set_dynamic_WRITEWATERFOGTODESTALPHA + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_character_ps30[5] =
|
||||
{
|
||||
{ "NUM_LIGHTS", 0, 4 },
|
||||
{ "DYN_CSM_ENABLED", 0, 1 },
|
||||
{ "WRITE_DEPTH_TO_DESTALPHA", 0, 0 },
|
||||
{ "WRITEWATERFOGTODESTALPHA", 0, 1 },
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_character_ps30[20] =
|
||||
{
|
||||
{ "MASKS1", 0, 1 },
|
||||
{ "MASKS2", 0, 1 },
|
||||
{ "FRESNELRANGESTEXTURE", 0, 1 },
|
||||
{ "PHONGWARPTEXTURE", 0, 1 },
|
||||
{ "ENVMAP", 0, 1 },
|
||||
{ "AMBIENTREFLECTION", 0, 1 },
|
||||
{ "USEBOUNCECOLOR", 0, 1 },
|
||||
{ "ANISOTROPY", 0, 1 },
|
||||
{ "BASEALPHAPHONGMASK", 0, 1 },
|
||||
{ "BASEALPHAENVMASK", 0, 1 },
|
||||
{ "BUMPALPHAENVMASK", 0, 1 },
|
||||
{ "SHADOWSATURATION", 0, 1 },
|
||||
{ "BASEALPHASELFILLUMMASK", 0, 1 },
|
||||
{ "FAKERIM", 0, 1 },
|
||||
{ "CASCADED_SHADOW_MAPPING", 0, 1 },
|
||||
{ "CSM_MODE", 0, 3 },
|
||||
{ "DOPREVIEW", 0, 1 },
|
||||
{ "USEPATTERN", 0, 4 },
|
||||
{ "FLASHLIGHT", 0, 1 },
|
||||
{ "FLASHLIGHTDEPTHFILTERMODE", 0, 3 },
|
||||
};
|
||||
static const ShaderComboSemantics_t character_ps30_combos =
|
||||
{
|
||||
"character_ps30", s_DynamicComboArray_character_ps30, 5, s_StaticComboArray_character_ps30, 20
|
||||
};
|
||||
|
||||
class ConstructMe_character_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_character_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &character_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_character_ps30 s_ConstructMe_character_ps30;
|
||||
94
materialsystem/stdshaders/fxctmp9/character_ssao_ps20.inc
Normal file
94
materialsystem/stdshaders/fxctmp9/character_ssao_ps20.inc
Normal file
@@ -0,0 +1,94 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class character_ssao_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nQUALITY_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bQUALITY_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetQUALITY_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nQUALITY_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bQUALITY_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetQUALITY_MODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nQUALITY_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bQUALITY_MODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ssao_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bQUALITY_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nQUALITY_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_bQUALITY_MODE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nQUALITY_MODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_character_ssao_ps20 psh_forgot_to_set_static_QUALITY_MODE + 0
|
||||
class character_ssao_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ssao_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_character_ssao_ps20 0
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_character_ssao_ps20[1] =
|
||||
{
|
||||
{ "QUALITY_MODE", 0, 0 },
|
||||
};
|
||||
static const ShaderComboSemantics_t character_ssao_ps20_combos =
|
||||
{
|
||||
"character_ssao_ps20", NULL, 0, s_StaticComboArray_character_ssao_ps20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_character_ssao_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_character_ssao_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &character_ssao_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_character_ssao_ps20 s_ConstructMe_character_ssao_ps20;
|
||||
94
materialsystem/stdshaders/fxctmp9/character_ssao_ps20b.inc
Normal file
94
materialsystem/stdshaders/fxctmp9/character_ssao_ps20b.inc
Normal file
@@ -0,0 +1,94 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class character_ssao_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nQUALITY_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bQUALITY_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetQUALITY_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nQUALITY_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bQUALITY_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetQUALITY_MODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nQUALITY_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bQUALITY_MODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ssao_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bQUALITY_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nQUALITY_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_bQUALITY_MODE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nQUALITY_MODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_character_ssao_ps20b psh_forgot_to_set_static_QUALITY_MODE + 0
|
||||
class character_ssao_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ssao_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_character_ssao_ps20b 0
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_character_ssao_ps20b[1] =
|
||||
{
|
||||
{ "QUALITY_MODE", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t character_ssao_ps20b_combos =
|
||||
{
|
||||
"character_ssao_ps20b", NULL, 0, s_StaticComboArray_character_ssao_ps20b, 1
|
||||
};
|
||||
|
||||
class ConstructMe_character_ssao_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_character_ssao_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &character_ssao_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_character_ssao_ps20b s_ConstructMe_character_ssao_ps20b;
|
||||
94
materialsystem/stdshaders/fxctmp9/character_ssao_ps30.inc
Normal file
94
materialsystem/stdshaders/fxctmp9/character_ssao_ps30.inc
Normal file
@@ -0,0 +1,94 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class character_ssao_ps30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nQUALITY_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bQUALITY_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetQUALITY_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nQUALITY_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bQUALITY_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetQUALITY_MODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
|
||||
m_nQUALITY_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bQUALITY_MODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ssao_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bQUALITY_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nQUALITY_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_bQUALITY_MODE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nQUALITY_MODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_character_ssao_ps30 psh_forgot_to_set_static_QUALITY_MODE + 0
|
||||
class character_ssao_ps30_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ssao_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_character_ssao_ps30 0
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_character_ssao_ps30[1] =
|
||||
{
|
||||
{ "QUALITY_MODE", 0, 2 },
|
||||
};
|
||||
static const ShaderComboSemantics_t character_ssao_ps30_combos =
|
||||
{
|
||||
"character_ssao_ps30", NULL, 0, s_StaticComboArray_character_ssao_ps30, 1
|
||||
};
|
||||
|
||||
class ConstructMe_character_ssao_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_character_ssao_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &character_ssao_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_character_ssao_ps30 s_ConstructMe_character_ssao_ps30;
|
||||
52
materialsystem/stdshaders/fxctmp9/character_ssao_vs20.inc
Normal file
52
materialsystem/stdshaders/fxctmp9/character_ssao_vs20.inc
Normal file
@@ -0,0 +1,52 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class character_ssao_vs20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ssao_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_character_ssao_vs20 0
|
||||
class character_ssao_vs20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ssao_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_character_ssao_vs20 0
|
||||
static const ShaderComboSemantics_t character_ssao_vs20_combos =
|
||||
{
|
||||
"character_ssao_vs20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_character_ssao_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_character_ssao_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &character_ssao_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_character_ssao_vs20 s_ConstructMe_character_ssao_vs20;
|
||||
52
materialsystem/stdshaders/fxctmp9/character_ssao_vs30.inc
Normal file
52
materialsystem/stdshaders/fxctmp9/character_ssao_vs30.inc
Normal file
@@ -0,0 +1,52 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class character_ssao_vs30_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ssao_vs30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_character_ssao_vs30 0
|
||||
class character_ssao_vs30_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_ssao_vs30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_character_ssao_vs30 0
|
||||
static const ShaderComboSemantics_t character_ssao_vs30_combos =
|
||||
{
|
||||
"character_ssao_vs30", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_character_ssao_vs30
|
||||
{
|
||||
public:
|
||||
ConstructMe_character_ssao_vs30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &character_ssao_vs30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_character_ssao_vs30 s_ConstructMe_character_ssao_vs30;
|
||||
254
materialsystem/stdshaders/fxctmp9/character_vs20.inc
Normal file
254
materialsystem/stdshaders/fxctmp9/character_vs20.inc
Normal file
@@ -0,0 +1,254 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class character_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nUSEBOUNCECOLOR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSEBOUNCECOLOR;
|
||||
#endif
|
||||
public:
|
||||
void SetUSEBOUNCECOLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nUSEBOUNCECOLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEBOUNCECOLOR = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSEBOUNCECOLOR( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nUSEBOUNCECOLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEBOUNCECOLOR = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bUSEBOUNCECOLOR = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSEBOUNCECOLOR = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = ( g_pHardwareConfig->SupportsPixelShaders_2_b() && !IS_FLAG_SET( MATERIAL_VAR_VERTEXFOG ) ) ? 1 : 0 ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = !g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
}
|
||||
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_bUSEBOUNCECOLOR && m_bDOPIXELFOG && m_bHARDWAREFOGBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 40 * m_nUSEBOUNCECOLOR ) + ( 40 * m_nDOPIXELFOG ) + ( 80 * m_nHARDWAREFOGBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_character_vs20 vsh_forgot_to_set_static_USEBOUNCECOLOR + 0
|
||||
class character_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOMPRESSED_VERTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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 && m_bNUM_LIGHTS && m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nSKINNING ) + ( 4 * m_nNUM_LIGHTS ) + ( 20 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_character_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING + vsh_forgot_to_set_dynamic_NUM_LIGHTS + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_character_vs20[4] =
|
||||
{
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
{ "NUM_LIGHTS", 0, 4 },
|
||||
{ "DOWATERFOG", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_character_vs20[3] =
|
||||
{
|
||||
{ "USEBOUNCECOLOR", 0, 0 },
|
||||
{ "DOPIXELFOG", 0, 1 },
|
||||
{ "HARDWAREFOGBLEND", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t character_vs20_combos =
|
||||
{
|
||||
"character_vs20", s_DynamicComboArray_character_vs20, 4, s_StaticComboArray_character_vs20, 3
|
||||
};
|
||||
|
||||
class ConstructMe_character_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_character_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &character_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_character_vs20 s_ConstructMe_character_vs20;
|
||||
308
materialsystem/stdshaders/fxctmp9/character_vs30.inc
Normal file
308
materialsystem/stdshaders/fxctmp9/character_vs30.inc
Normal file
@@ -0,0 +1,308 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class character_vs30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nUSEBOUNCECOLOR;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSEBOUNCECOLOR;
|
||||
#endif
|
||||
public:
|
||||
void SetUSEBOUNCECOLOR( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSEBOUNCECOLOR = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEBOUNCECOLOR = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSEBOUNCECOLOR( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSEBOUNCECOLOR = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEBOUNCECOLOR = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLASHLIGHT = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLATTEN_STATIC_CONTROL_FLOW;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLATTEN_STATIC_CONTROL_FLOW;
|
||||
#endif
|
||||
public:
|
||||
void SetFLATTEN_STATIC_CONTROL_FLOW( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLATTEN_STATIC_CONTROL_FLOW = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLATTEN_STATIC_CONTROL_FLOW = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLATTEN_STATIC_CONTROL_FLOW( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLATTEN_STATIC_CONTROL_FLOW = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLATTEN_STATIC_CONTROL_FLOW = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_vs30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bUSEBOUNCECOLOR = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSEBOUNCECOLOR = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLASHLIGHT = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLASHLIGHT = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLATTEN_STATIC_CONTROL_FLOW = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLATTEN_STATIC_CONTROL_FLOW = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = ( g_pHardwareConfig->SupportsPixelShaders_2_b() && !IS_FLAG_SET( MATERIAL_VAR_VERTEXFOG ) ) ? 1 : 0 ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = 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_bUSEBOUNCECOLOR && m_bFLASHLIGHT && m_bFLATTEN_STATIC_CONTROL_FLOW && m_bDOPIXELFOG && m_bHARDWAREFOGBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 40 * m_nUSEBOUNCECOLOR ) + ( 80 * m_nFLASHLIGHT ) + ( 160 * m_nFLATTEN_STATIC_CONTROL_FLOW ) + ( 320 * m_nDOPIXELFOG ) + ( 640 * m_nHARDWAREFOGBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_character_vs30 vsh_forgot_to_set_static_USEBOUNCECOLOR + vsh_forgot_to_set_static_FLASHLIGHT + vsh_forgot_to_set_static_FLATTEN_STATIC_CONTROL_FLOW + 0
|
||||
class character_vs30_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
character_vs30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOMPRESSED_VERTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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 && m_bNUM_LIGHTS && m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nSKINNING ) + ( 4 * m_nNUM_LIGHTS ) + ( 20 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_character_vs30 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING + vsh_forgot_to_set_dynamic_NUM_LIGHTS + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_character_vs30[4] =
|
||||
{
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
{ "NUM_LIGHTS", 0, 4 },
|
||||
{ "DOWATERFOG", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_character_vs30[5] =
|
||||
{
|
||||
{ "USEBOUNCECOLOR", 0, 1 },
|
||||
{ "FLASHLIGHT", 0, 1 },
|
||||
{ "FLATTEN_STATIC_CONTROL_FLOW", 0, 1 },
|
||||
{ "DOPIXELFOG", 0, 1 },
|
||||
{ "HARDWAREFOGBLEND", 0, 0 },
|
||||
};
|
||||
static const ShaderComboSemantics_t character_vs30_combos =
|
||||
{
|
||||
"character_vs30", s_DynamicComboArray_character_vs30, 4, s_StaticComboArray_character_vs30, 5
|
||||
};
|
||||
|
||||
class ConstructMe_character_vs30
|
||||
{
|
||||
public:
|
||||
ConstructMe_character_vs30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &character_vs30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_character_vs30 s_ConstructMe_character_vs30;
|
||||
51
materialsystem/stdshaders/fxctmp9/clearalpha_ps20.inc
Normal file
51
materialsystem/stdshaders/fxctmp9/clearalpha_ps20.inc
Normal file
@@ -0,0 +1,51 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
#include "shaderlib/cshader.h"
|
||||
class clearalpha_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
clearalpha_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_clearalpha_ps20 0
|
||||
class clearalpha_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
clearalpha_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_clearalpha_ps20 0
|
||||
static const ShaderComboSemantics_t clearalpha_ps20_combos =
|
||||
{
|
||||
"clearalpha_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_clearalpha_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_clearalpha_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &clearalpha_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_clearalpha_ps20 s_ConstructMe_clearalpha_ps20;
|
||||
51
materialsystem/stdshaders/fxctmp9/clearalpha_ps20b.inc
Normal file
51
materialsystem/stdshaders/fxctmp9/clearalpha_ps20b.inc
Normal file
@@ -0,0 +1,51 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
#include "shaderlib/cshader.h"
|
||||
class clearalpha_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
clearalpha_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_clearalpha_ps20b 0
|
||||
class clearalpha_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
clearalpha_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_clearalpha_ps20b 0
|
||||
static const ShaderComboSemantics_t clearalpha_ps20b_combos =
|
||||
{
|
||||
"clearalpha_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_clearalpha_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_clearalpha_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &clearalpha_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_clearalpha_ps20b s_ConstructMe_clearalpha_ps20b;
|
||||
@@ -0,0 +1,89 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_blended_pass_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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:
|
||||
// CONSTRUCTOR
|
||||
cloak_blended_pass_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cloak_blended_pass_ps20[1] =
|
||||
{
|
||||
{ "BUMPMAP", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cloak_blended_pass_ps20_combos =
|
||||
{
|
||||
"cloak_blended_pass_ps20", NULL, 0, s_StaticComboArray_cloak_blended_pass_ps20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_cloak_blended_pass_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_cloak_blended_pass_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cloak_blended_pass_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cloak_blended_pass_ps20 s_ConstructMe_cloak_blended_pass_ps20;
|
||||
@@ -0,0 +1,89 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_blended_pass_ps20b_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_blended_pass_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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_ps20b psh_forgot_to_set_static_BUMPMAP + 0
|
||||
class cloak_blended_pass_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_blended_pass_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cloak_blended_pass_ps20b[1] =
|
||||
{
|
||||
{ "BUMPMAP", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cloak_blended_pass_ps20b_combos =
|
||||
{
|
||||
"cloak_blended_pass_ps20b", NULL, 0, s_StaticComboArray_cloak_blended_pass_ps20b, 1
|
||||
};
|
||||
|
||||
class ConstructMe_cloak_blended_pass_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_cloak_blended_pass_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cloak_blended_pass_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cloak_blended_pass_ps20b s_ConstructMe_cloak_blended_pass_ps20b;
|
||||
@@ -0,0 +1,89 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_blended_pass_ps30_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_blended_pass_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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_ps30 psh_forgot_to_set_static_BUMPMAP + 0
|
||||
class cloak_blended_pass_ps30_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_blended_pass_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cloak_blended_pass_ps30[1] =
|
||||
{
|
||||
{ "BUMPMAP", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cloak_blended_pass_ps30_combos =
|
||||
{
|
||||
"cloak_blended_pass_ps30", NULL, 0, s_StaticComboArray_cloak_blended_pass_ps30, 1
|
||||
};
|
||||
|
||||
class ConstructMe_cloak_blended_pass_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_cloak_blended_pass_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cloak_blended_pass_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cloak_blended_pass_ps30 s_ConstructMe_cloak_blended_pass_ps30;
|
||||
172
materialsystem/stdshaders/fxctmp9/cloak_blended_pass_vs20.inc
Normal file
172
materialsystem/stdshaders/fxctmp9/cloak_blended_pass_vs20.inc
Normal file
@@ -0,0 +1,172 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_blended_pass_vs20_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_blended_pass_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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 ( 4 * m_nBUMPMAP ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cloak_blended_pass_vs20 vsh_forgot_to_set_static_BUMPMAP + 0
|
||||
class cloak_blended_pass_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nMORPHING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMORPHING;
|
||||
#endif
|
||||
public:
|
||||
void SetMORPHING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nMORPHING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif
|
||||
}
|
||||
void SetMORPHING( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nMORPHING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_blended_pass_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOMPRESSED_VERTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif // _DEBUG
|
||||
m_nMORPHING = false ;
|
||||
}
|
||||
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 && m_bMORPHING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nSKINNING ) + ( 4 * m_nMORPHING ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cloak_blended_pass_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cloak_blended_pass_vs20[3] =
|
||||
{
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
{ "MORPHING", 0, 0 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cloak_blended_pass_vs20[1] =
|
||||
{
|
||||
{ "BUMPMAP", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cloak_blended_pass_vs20_combos =
|
||||
{
|
||||
"cloak_blended_pass_vs20", s_DynamicComboArray_cloak_blended_pass_vs20, 3, s_StaticComboArray_cloak_blended_pass_vs20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_cloak_blended_pass_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_cloak_blended_pass_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cloak_blended_pass_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cloak_blended_pass_vs20 s_ConstructMe_cloak_blended_pass_vs20;
|
||||
172
materialsystem/stdshaders/fxctmp9/cloak_blended_pass_vs30.inc
Normal file
172
materialsystem/stdshaders/fxctmp9/cloak_blended_pass_vs30.inc
Normal file
@@ -0,0 +1,172 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_blended_pass_vs30_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBUMPMAP = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPMAP = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_blended_pass_vs30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#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 ( 4 * m_nBUMPMAP ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cloak_blended_pass_vs30 vsh_forgot_to_set_static_BUMPMAP + 0
|
||||
class cloak_blended_pass_vs30_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nMORPHING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMORPHING;
|
||||
#endif
|
||||
public:
|
||||
void SetMORPHING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nMORPHING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif
|
||||
}
|
||||
void SetMORPHING( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nMORPHING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_blended_pass_vs30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOMPRESSED_VERTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif // _DEBUG
|
||||
m_nMORPHING = false ;
|
||||
}
|
||||
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 && m_bMORPHING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nSKINNING ) + ( 4 * m_nMORPHING ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cloak_blended_pass_vs30 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cloak_blended_pass_vs30[3] =
|
||||
{
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
{ "MORPHING", 0, 0 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cloak_blended_pass_vs30[1] =
|
||||
{
|
||||
{ "BUMPMAP", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cloak_blended_pass_vs30_combos =
|
||||
{
|
||||
"cloak_blended_pass_vs30", s_DynamicComboArray_cloak_blended_pass_vs30, 3, s_StaticComboArray_cloak_blended_pass_vs30, 1
|
||||
};
|
||||
|
||||
class ConstructMe_cloak_blended_pass_vs30
|
||||
{
|
||||
public:
|
||||
ConstructMe_cloak_blended_pass_vs30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cloak_blended_pass_vs30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cloak_blended_pass_vs30 s_ConstructMe_cloak_blended_pass_vs30;
|
||||
176
materialsystem/stdshaders/fxctmp9/cloak_ps20.inc
Normal file
176
materialsystem/stdshaders/fxctmp9/cloak_ps20.inc
Normal file
@@ -0,0 +1,176 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_ps20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nLIGHTWARPTEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bLIGHTWARPTEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetLIGHTWARPTEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nLIGHTWARPTEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTWARPTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetLIGHTWARPTEXTURE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nLIGHTWARPTEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTWARPTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTWARPTEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nLIGHTWARPTEXTURE = 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_bLIGHTWARPTEXTURE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 12 * m_nLIGHTWARPTEXTURE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cloak_ps20 psh_forgot_to_set_static_LIGHTWARPTEXTURE + 0
|
||||
class cloak_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nWRITEWATERFOGTODESTALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITEWATERFOGTODESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 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 && m_bWRITEWATERFOGTODESTALPHA && m_bNUM_LIGHTS;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + ( 2 * m_nWRITEWATERFOGTODESTALPHA ) + ( 4 * m_nNUM_LIGHTS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cloak_ps20 psh_forgot_to_set_dynamic_WRITEWATERFOGTODESTALPHA + psh_forgot_to_set_dynamic_NUM_LIGHTS + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cloak_ps20[3] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
{ "WRITEWATERFOGTODESTALPHA", 0, 1 },
|
||||
{ "NUM_LIGHTS", 0, 2 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cloak_ps20[1] =
|
||||
{
|
||||
{ "LIGHTWARPTEXTURE", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cloak_ps20_combos =
|
||||
{
|
||||
"cloak_ps20", s_DynamicComboArray_cloak_ps20, 3, s_StaticComboArray_cloak_ps20, 1
|
||||
};
|
||||
|
||||
class ConstructMe_cloak_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_cloak_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cloak_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cloak_ps20 s_ConstructMe_cloak_ps20;
|
||||
176
materialsystem/stdshaders/fxctmp9/cloak_ps20b.inc
Normal file
176
materialsystem/stdshaders/fxctmp9/cloak_ps20b.inc
Normal file
@@ -0,0 +1,176 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nLIGHTWARPTEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bLIGHTWARPTEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetLIGHTWARPTEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nLIGHTWARPTEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTWARPTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetLIGHTWARPTEXTURE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nLIGHTWARPTEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTWARPTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTWARPTEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nLIGHTWARPTEXTURE = 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_bLIGHTWARPTEXTURE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 20 * m_nLIGHTWARPTEXTURE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cloak_ps20b psh_forgot_to_set_static_LIGHTWARPTEXTURE + 0
|
||||
class cloak_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nWRITEWATERFOGTODESTALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITEWATERFOGTODESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 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 && m_bWRITEWATERFOGTODESTALPHA && m_bNUM_LIGHTS;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + ( 2 * m_nWRITEWATERFOGTODESTALPHA ) + ( 4 * m_nNUM_LIGHTS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cloak_ps20b psh_forgot_to_set_dynamic_WRITEWATERFOGTODESTALPHA + psh_forgot_to_set_dynamic_NUM_LIGHTS + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cloak_ps20b[3] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
{ "WRITEWATERFOGTODESTALPHA", 0, 1 },
|
||||
{ "NUM_LIGHTS", 0, 4 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cloak_ps20b[1] =
|
||||
{
|
||||
{ "LIGHTWARPTEXTURE", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cloak_ps20b_combos =
|
||||
{
|
||||
"cloak_ps20b", s_DynamicComboArray_cloak_ps20b, 3, s_StaticComboArray_cloak_ps20b, 1
|
||||
};
|
||||
|
||||
class ConstructMe_cloak_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_cloak_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cloak_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cloak_ps20b s_ConstructMe_cloak_ps20b;
|
||||
176
materialsystem/stdshaders/fxctmp9/cloak_ps30.inc
Normal file
176
materialsystem/stdshaders/fxctmp9/cloak_ps30.inc
Normal file
@@ -0,0 +1,176 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_ps30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nLIGHTWARPTEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bLIGHTWARPTEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetLIGHTWARPTEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nLIGHTWARPTEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTWARPTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetLIGHTWARPTEXTURE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nLIGHTWARPTEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTWARPTEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bLIGHTWARPTEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nLIGHTWARPTEXTURE = 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_bLIGHTWARPTEXTURE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 20 * m_nLIGHTWARPTEXTURE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cloak_ps30 psh_forgot_to_set_static_LIGHTWARPTEXTURE + 0
|
||||
class cloak_ps30_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nWRITEWATERFOGTODESTALPHA = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
#ifdef _DEBUG
|
||||
m_bWRITEWATERFOGTODESTALPHA = false;
|
||||
#endif // _DEBUG
|
||||
m_nWRITEWATERFOGTODESTALPHA = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 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 && m_bWRITEWATERFOGTODESTALPHA && m_bNUM_LIGHTS;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nPIXELFOGTYPE ) + ( 2 * m_nWRITEWATERFOGTODESTALPHA ) + ( 4 * m_nNUM_LIGHTS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cloak_ps30 psh_forgot_to_set_dynamic_WRITEWATERFOGTODESTALPHA + psh_forgot_to_set_dynamic_NUM_LIGHTS + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cloak_ps30[3] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
{ "WRITEWATERFOGTODESTALPHA", 0, 1 },
|
||||
{ "NUM_LIGHTS", 0, 4 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cloak_ps30[1] =
|
||||
{
|
||||
{ "LIGHTWARPTEXTURE", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cloak_ps30_combos =
|
||||
{
|
||||
"cloak_ps30", s_DynamicComboArray_cloak_ps30, 3, s_StaticComboArray_cloak_ps30, 1
|
||||
};
|
||||
|
||||
class ConstructMe_cloak_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_cloak_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cloak_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cloak_ps30 s_ConstructMe_cloak_ps30;
|
||||
310
materialsystem/stdshaders/fxctmp9/cloak_vs20.inc
Normal file
310
materialsystem/stdshaders/fxctmp9/cloak_vs20.inc
Normal file
@@ -0,0 +1,310 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// ( $DOWATERFOG == 0 ) && ( $HARDWAREFOGBLEND == 0 ) && ( $DOPIXELFOG == 0 )
|
||||
// ( $FLATTEN_STATIC_CONTROL_FLOW == 0 )&& ( $NUM_LIGHTS > 0 ) [PC]
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nMODEL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMODEL;
|
||||
#endif
|
||||
public:
|
||||
void SetMODEL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMODEL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMODEL = true;
|
||||
#endif
|
||||
}
|
||||
void SetMODEL( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nMODEL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMODEL = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nFLATTEN_STATIC_CONTROL_FLOW;
|
||||
#ifdef _DEBUG
|
||||
bool m_bFLATTEN_STATIC_CONTROL_FLOW;
|
||||
#endif
|
||||
public:
|
||||
void SetFLATTEN_STATIC_CONTROL_FLOW( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nFLATTEN_STATIC_CONTROL_FLOW = i;
|
||||
#ifdef _DEBUG
|
||||
m_bFLATTEN_STATIC_CONTROL_FLOW = true;
|
||||
#endif
|
||||
}
|
||||
void SetFLATTEN_STATIC_CONTROL_FLOW( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nFLATTEN_STATIC_CONTROL_FLOW = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLATTEN_STATIC_CONTROL_FLOW = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bMODEL = false;
|
||||
#endif // _DEBUG
|
||||
m_nMODEL = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bFLATTEN_STATIC_CONTROL_FLOW = false;
|
||||
#endif // _DEBUG
|
||||
m_nFLATTEN_STATIC_CONTROL_FLOW = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = !g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
}
|
||||
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_bMODEL && m_bFLATTEN_STATIC_CONTROL_FLOW && m_bDOPIXELFOG && m_bHARDWAREFOGBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 24 * m_nMODEL ) + ( 48 * m_nFLATTEN_STATIC_CONTROL_FLOW ) + ( 96 * m_nDOPIXELFOG ) + ( 192 * m_nHARDWAREFOGBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cloak_vs20 vsh_forgot_to_set_static_MODEL + vsh_forgot_to_set_static_FLATTEN_STATIC_CONTROL_FLOW + 0
|
||||
class cloak_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCOMPRESSED_VERTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nMORPHING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMORPHING;
|
||||
#endif
|
||||
public:
|
||||
void SetMORPHING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nMORPHING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif
|
||||
}
|
||||
void SetMORPHING( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nMORPHING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOMPRESSED_VERTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif // _DEBUG
|
||||
m_nMORPHING = false ;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 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_bDOWATERFOG && m_bSKINNING && m_bMORPHING && m_bNUM_LIGHTS;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nDOWATERFOG ) + ( 4 * m_nSKINNING ) + ( 8 * m_nMORPHING ) + ( 8 * m_nNUM_LIGHTS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cloak_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING + vsh_forgot_to_set_dynamic_NUM_LIGHTS + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cloak_vs20[5] =
|
||||
{
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
{ "DOWATERFOG", 0, 1 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
{ "MORPHING", 0, 0 },
|
||||
{ "NUM_LIGHTS", 0, 2 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cloak_vs20[4] =
|
||||
{
|
||||
{ "MODEL", 0, 1 },
|
||||
{ "FLATTEN_STATIC_CONTROL_FLOW", 0, 1 },
|
||||
{ "DOPIXELFOG", 0, 1 },
|
||||
{ "HARDWAREFOGBLEND", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cloak_vs20_combos =
|
||||
{
|
||||
"cloak_vs20", s_DynamicComboArray_cloak_vs20, 5, s_StaticComboArray_cloak_vs20, 4
|
||||
};
|
||||
|
||||
class ConstructMe_cloak_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_cloak_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cloak_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cloak_vs20 s_ConstructMe_cloak_vs20;
|
||||
255
materialsystem/stdshaders/fxctmp9/cloak_vs30.inc
Normal file
255
materialsystem/stdshaders/fxctmp9/cloak_vs30.inc
Normal file
@@ -0,0 +1,255 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// ( $DOWATERFOG == 0 ) && ( $HARDWAREFOGBLEND == 0 ) && ( $DOPIXELFOG == 0 )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class cloak_vs30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nMODEL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMODEL;
|
||||
#endif
|
||||
public:
|
||||
void SetMODEL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nMODEL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMODEL = true;
|
||||
#endif
|
||||
}
|
||||
void SetMODEL( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nMODEL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMODEL = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_vs30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bMODEL = false;
|
||||
#endif // _DEBUG
|
||||
m_nMODEL = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = 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_bMODEL && m_bDOPIXELFOG && m_bHARDWAREFOGBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 8 * m_nMODEL ) + ( 16 * m_nDOPIXELFOG ) + ( 32 * m_nHARDWAREFOGBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cloak_vs30 vsh_forgot_to_set_static_MODEL + 0
|
||||
class cloak_vs30_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCOMPRESSED_VERTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nMORPHING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bMORPHING;
|
||||
#endif
|
||||
public:
|
||||
void SetMORPHING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nMORPHING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif
|
||||
}
|
||||
void SetMORPHING( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nMORPHING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cloak_vs30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPRESSED_VERTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOMPRESSED_VERTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = false;
|
||||
#endif // _DEBUG
|
||||
m_nSKINNING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bMORPHING = true;
|
||||
#endif // _DEBUG
|
||||
m_nMORPHING = false ;
|
||||
}
|
||||
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_bDOWATERFOG && m_bSKINNING && m_bMORPHING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nDOWATERFOG ) + ( 4 * m_nSKINNING ) + ( 8 * m_nMORPHING ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cloak_vs30 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cloak_vs30[4] =
|
||||
{
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
{ "DOWATERFOG", 0, 1 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
{ "MORPHING", 0, 0 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cloak_vs30[3] =
|
||||
{
|
||||
{ "MODEL", 0, 1 },
|
||||
{ "DOPIXELFOG", 0, 1 },
|
||||
{ "HARDWAREFOGBLEND", 0, 0 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cloak_vs30_combos =
|
||||
{
|
||||
"cloak_vs30", s_DynamicComboArray_cloak_vs30, 4, s_StaticComboArray_cloak_vs30, 3
|
||||
};
|
||||
|
||||
class ConstructMe_cloak_vs30
|
||||
{
|
||||
public:
|
||||
ConstructMe_cloak_vs30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cloak_vs30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cloak_vs30 s_ConstructMe_cloak_vs30;
|
||||
89
materialsystem/stdshaders/fxctmp9/colorcorrection_ps20.inc
Normal file
89
materialsystem/stdshaders/fxctmp9/colorcorrection_ps20.inc
Normal file
@@ -0,0 +1,89 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class colorcorrection_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorcorrection_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_colorcorrection_ps20 0
|
||||
class colorcorrection_ps20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nNUM_LOOKUPS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LOOKUPS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LOOKUPS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LOOKUPS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LOOKUPS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LOOKUPS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LOOKUPS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LOOKUPS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorcorrection_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LOOKUPS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LOOKUPS = 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_bNUM_LOOKUPS;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nNUM_LOOKUPS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_colorcorrection_ps20 psh_forgot_to_set_dynamic_NUM_LOOKUPS + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_colorcorrection_ps20[1] =
|
||||
{
|
||||
{ "NUM_LOOKUPS", 0, 4 },
|
||||
};
|
||||
static const ShaderComboSemantics_t colorcorrection_ps20_combos =
|
||||
{
|
||||
"colorcorrection_ps20", s_DynamicComboArray_colorcorrection_ps20, 1, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_colorcorrection_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_colorcorrection_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &colorcorrection_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_colorcorrection_ps20 s_ConstructMe_colorcorrection_ps20;
|
||||
89
materialsystem/stdshaders/fxctmp9/colorcorrection_ps20b.inc
Normal file
89
materialsystem/stdshaders/fxctmp9/colorcorrection_ps20b.inc
Normal file
@@ -0,0 +1,89 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class colorcorrection_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorcorrection_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_colorcorrection_ps20b 0
|
||||
class colorcorrection_ps20b_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nNUM_LOOKUPS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LOOKUPS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LOOKUPS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LOOKUPS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LOOKUPS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LOOKUPS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LOOKUPS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LOOKUPS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorcorrection_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LOOKUPS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LOOKUPS = 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_bNUM_LOOKUPS;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nNUM_LOOKUPS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_colorcorrection_ps20b psh_forgot_to_set_dynamic_NUM_LOOKUPS + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_colorcorrection_ps20b[1] =
|
||||
{
|
||||
{ "NUM_LOOKUPS", 0, 4 },
|
||||
};
|
||||
static const ShaderComboSemantics_t colorcorrection_ps20b_combos =
|
||||
{
|
||||
"colorcorrection_ps20b", s_DynamicComboArray_colorcorrection_ps20b, 1, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_colorcorrection_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_colorcorrection_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &colorcorrection_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_colorcorrection_ps20b s_ConstructMe_colorcorrection_ps20b;
|
||||
56
materialsystem/stdshaders/fxctmp9/colorout_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/colorout_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class colorout_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorout_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_colorout_ps20 0
|
||||
class colorout_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorout_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_colorout_ps20 0
|
||||
static const ShaderComboSemantics_t colorout_ps20_combos =
|
||||
{
|
||||
"colorout_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_colorout_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_colorout_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &colorout_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_colorout_ps20 s_ConstructMe_colorout_ps20;
|
||||
56
materialsystem/stdshaders/fxctmp9/colorout_ps20b.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/colorout_ps20b.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class colorout_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorout_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_colorout_ps20b 0
|
||||
class colorout_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorout_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_colorout_ps20b 0
|
||||
static const ShaderComboSemantics_t colorout_ps20b_combos =
|
||||
{
|
||||
"colorout_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_colorout_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_colorout_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &colorout_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_colorout_ps20b s_ConstructMe_colorout_ps20b;
|
||||
56
materialsystem/stdshaders/fxctmp9/colorout_ps30.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/colorout_ps30.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class colorout_ps30_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorout_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_colorout_ps30 0
|
||||
class colorout_ps30_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorout_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_colorout_ps30 0
|
||||
static const ShaderComboSemantics_t colorout_ps30_combos =
|
||||
{
|
||||
"colorout_ps30", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_colorout_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_colorout_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &colorout_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_colorout_ps30 s_ConstructMe_colorout_ps30;
|
||||
201
materialsystem/stdshaders/fxctmp9/colorout_vs20.inc
Normal file
201
materialsystem/stdshaders/fxctmp9/colorout_vs20.inc
Normal file
@@ -0,0 +1,201 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// ( $DOWATERFOG == 0 ) && ( $HARDWAREFOGBLEND == 0 ) && ( $DOPIXELFOG == 0 )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class colorout_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorout_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = !g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
}
|
||||
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_bDOPIXELFOG && m_bHARDWAREFOGBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 8 * m_nDOPIXELFOG ) + ( 16 * m_nHARDWAREFOGBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_colorout_vs20 0
|
||||
class colorout_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorout_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
#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_bDOWATERFOG && m_bCOMPRESSED_VERTS && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nCOMPRESSED_VERTS ) + ( 4 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_colorout_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_colorout_vs20[3] =
|
||||
{
|
||||
{ "DOWATERFOG", 0, 1 },
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_colorout_vs20[2] =
|
||||
{
|
||||
{ "DOPIXELFOG", 0, 1 },
|
||||
{ "HARDWAREFOGBLEND", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t colorout_vs20_combos =
|
||||
{
|
||||
"colorout_vs20", s_DynamicComboArray_colorout_vs20, 3, s_StaticComboArray_colorout_vs20, 2
|
||||
};
|
||||
|
||||
class ConstructMe_colorout_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_colorout_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &colorout_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_colorout_vs20 s_ConstructMe_colorout_vs20;
|
||||
201
materialsystem/stdshaders/fxctmp9/colorout_vs30.inc
Normal file
201
materialsystem/stdshaders/fxctmp9/colorout_vs30.inc
Normal file
@@ -0,0 +1,201 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// ( $DOWATERFOG == 0 ) && ( $HARDWAREFOGBLEND == 0 ) && ( $DOPIXELFOG == 0 )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class colorout_vs30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorout_vs30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = 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_bDOPIXELFOG && m_bHARDWAREFOGBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 8 * m_nDOPIXELFOG ) + ( 16 * m_nHARDWAREFOGBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_colorout_vs30 0
|
||||
class colorout_vs30_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSKINNING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSKINNING = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
colorout_vs30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
#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_bDOWATERFOG && m_bCOMPRESSED_VERTS && m_bSKINNING;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDOWATERFOG ) + ( 2 * m_nCOMPRESSED_VERTS ) + ( 4 * m_nSKINNING ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_colorout_vs30 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_colorout_vs30[3] =
|
||||
{
|
||||
{ "DOWATERFOG", 0, 1 },
|
||||
{ "COMPRESSED_VERTS", 0, 1 },
|
||||
{ "SKINNING", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_colorout_vs30[2] =
|
||||
{
|
||||
{ "DOPIXELFOG", 0, 1 },
|
||||
{ "HARDWAREFOGBLEND", 0, 0 },
|
||||
};
|
||||
static const ShaderComboSemantics_t colorout_vs30_combos =
|
||||
{
|
||||
"colorout_vs30", s_DynamicComboArray_colorout_vs30, 3, s_StaticComboArray_colorout_vs30, 2
|
||||
};
|
||||
|
||||
class ConstructMe_colorout_vs30
|
||||
{
|
||||
public:
|
||||
ConstructMe_colorout_vs30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &colorout_vs30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_colorout_vs30 s_ConstructMe_colorout_vs30;
|
||||
@@ -0,0 +1,51 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
#include "shaderlib/cshader.h"
|
||||
class compositedeferredshadow_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
compositedeferredshadow_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_compositedeferredshadow_ps20 0
|
||||
class compositedeferredshadow_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
compositedeferredshadow_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_compositedeferredshadow_ps20 0
|
||||
static const ShaderComboSemantics_t compositedeferredshadow_ps20_combos =
|
||||
{
|
||||
"compositedeferredshadow_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_compositedeferredshadow_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_compositedeferredshadow_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &compositedeferredshadow_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_compositedeferredshadow_ps20 s_ConstructMe_compositedeferredshadow_ps20;
|
||||
@@ -0,0 +1,51 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
#include "shaderlib/cshader.h"
|
||||
class compositedeferredshadow_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
compositedeferredshadow_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_compositedeferredshadow_ps20b 0
|
||||
class compositedeferredshadow_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
compositedeferredshadow_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_compositedeferredshadow_ps20b 0
|
||||
static const ShaderComboSemantics_t compositedeferredshadow_ps20b_combos =
|
||||
{
|
||||
"compositedeferredshadow_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_compositedeferredshadow_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_compositedeferredshadow_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &compositedeferredshadow_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_compositedeferredshadow_ps20b s_ConstructMe_compositedeferredshadow_ps20b;
|
||||
56
materialsystem/stdshaders/fxctmp9/constant_color_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/constant_color_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class constant_color_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
constant_color_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_constant_color_ps20 0
|
||||
class constant_color_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
constant_color_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_constant_color_ps20 0
|
||||
static const ShaderComboSemantics_t constant_color_ps20_combos =
|
||||
{
|
||||
"constant_color_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_constant_color_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_constant_color_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &constant_color_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_constant_color_ps20 s_ConstructMe_constant_color_ps20;
|
||||
56
materialsystem/stdshaders/fxctmp9/constant_color_ps20b.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/constant_color_ps20b.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class constant_color_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
constant_color_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_constant_color_ps20b 0
|
||||
class constant_color_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
constant_color_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_constant_color_ps20b 0
|
||||
static const ShaderComboSemantics_t constant_color_ps20b_combos =
|
||||
{
|
||||
"constant_color_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_constant_color_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_constant_color_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &constant_color_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_constant_color_ps20b s_ConstructMe_constant_color_ps20b;
|
||||
56
materialsystem/stdshaders/fxctmp9/copy_fp_rt_ps20.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/copy_fp_rt_ps20.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class copy_fp_rt_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
copy_fp_rt_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_copy_fp_rt_ps20 0
|
||||
class copy_fp_rt_ps20_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
copy_fp_rt_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_copy_fp_rt_ps20 0
|
||||
static const ShaderComboSemantics_t copy_fp_rt_ps20_combos =
|
||||
{
|
||||
"copy_fp_rt_ps20", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_copy_fp_rt_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_copy_fp_rt_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( ©_fp_rt_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_copy_fp_rt_ps20 s_ConstructMe_copy_fp_rt_ps20;
|
||||
56
materialsystem/stdshaders/fxctmp9/copy_fp_rt_ps20b.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/copy_fp_rt_ps20b.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class copy_fp_rt_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
copy_fp_rt_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_copy_fp_rt_ps20b 0
|
||||
class copy_fp_rt_ps20b_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
copy_fp_rt_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_copy_fp_rt_ps20b 0
|
||||
static const ShaderComboSemantics_t copy_fp_rt_ps20b_combos =
|
||||
{
|
||||
"copy_fp_rt_ps20b", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_copy_fp_rt_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_copy_fp_rt_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( ©_fp_rt_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_copy_fp_rt_ps20b s_ConstructMe_copy_fp_rt_ps20b;
|
||||
95
materialsystem/stdshaders/fxctmp9/cs_grass_ps20.inc
Normal file
95
materialsystem/stdshaders/fxctmp9/cs_grass_ps20.inc
Normal file
@@ -0,0 +1,95 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $DYN_CSM_ENABLED == 1 )
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cs_grass_ps20_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_grass_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_cs_grass_ps20 0
|
||||
class cs_grass_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_grass_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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_cs_grass_ps20 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cs_grass_ps20[1] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cs_grass_ps20_combos =
|
||||
{
|
||||
"cs_grass_ps20", s_DynamicComboArray_cs_grass_ps20, 1, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_cs_grass_ps20
|
||||
{
|
||||
public:
|
||||
ConstructMe_cs_grass_ps20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cs_grass_ps20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cs_grass_ps20 s_ConstructMe_cs_grass_ps20;
|
||||
95
materialsystem/stdshaders/fxctmp9/cs_grass_ps20b.inc
Normal file
95
materialsystem/stdshaders/fxctmp9/cs_grass_ps20b.inc
Normal file
@@ -0,0 +1,95 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $DYN_CSM_ENABLED == 1 )
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cs_grass_ps20b_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_grass_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_cs_grass_ps20b 0
|
||||
class cs_grass_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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_grass_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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_cs_grass_ps20b 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cs_grass_ps20b[1] =
|
||||
{
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cs_grass_ps20b_combos =
|
||||
{
|
||||
"cs_grass_ps20b", s_DynamicComboArray_cs_grass_ps20b, 1, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_cs_grass_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_cs_grass_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cs_grass_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cs_grass_ps20b s_ConstructMe_cs_grass_ps20b;
|
||||
182
materialsystem/stdshaders/fxctmp9/cs_grass_ps30.inc
Normal file
182
materialsystem/stdshaders/fxctmp9/cs_grass_ps30.inc
Normal file
@@ -0,0 +1,182 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $DYN_CSM_ENABLED == 1 )
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cs_grass_ps30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCASCADED_SHADOW_MAPPING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCASCADED_SHADOW_MAPPING;
|
||||
#endif
|
||||
public:
|
||||
void SetCASCADED_SHADOW_MAPPING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCASCADED_SHADOW_MAPPING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = true;
|
||||
#endif
|
||||
}
|
||||
void SetCASCADED_SHADOW_MAPPING( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCASCADED_SHADOW_MAPPING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCSM_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCSM_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetCSM_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 3 );
|
||||
m_nCSM_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetCSM_MODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 3 );
|
||||
m_nCSM_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_grass_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = false;
|
||||
#endif // _DEBUG
|
||||
m_nCASCADED_SHADOW_MAPPING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nCSM_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_bCASCADED_SHADOW_MAPPING && m_bCSM_MODE;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 4 * m_nCASCADED_SHADOW_MAPPING ) + ( 8 * m_nCSM_MODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cs_grass_ps30 psh_forgot_to_set_static_CASCADED_SHADOW_MAPPING + psh_forgot_to_set_static_CSM_MODE + 0
|
||||
class cs_grass_ps30_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDYN_CSM_ENABLED;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDYN_CSM_ENABLED;
|
||||
#endif
|
||||
public:
|
||||
void SetDYN_CSM_ENABLED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDYN_CSM_ENABLED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = true;
|
||||
#endif
|
||||
}
|
||||
void SetDYN_CSM_ENABLED( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDYN_CSM_ENABLED = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = 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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nPIXELFOGTYPE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_grass_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = false;
|
||||
#endif // _DEBUG
|
||||
m_nDYN_CSM_ENABLED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bPIXELFOGTYPE = true;
|
||||
#endif // _DEBUG
|
||||
m_nPIXELFOGTYPE = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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_bDYN_CSM_ENABLED && m_bPIXELFOGTYPE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDYN_CSM_ENABLED ) + ( 2 * m_nPIXELFOGTYPE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cs_grass_ps30 psh_forgot_to_set_dynamic_DYN_CSM_ENABLED + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cs_grass_ps30[2] =
|
||||
{
|
||||
{ "DYN_CSM_ENABLED", 0, 1 },
|
||||
{ "PIXELFOGTYPE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cs_grass_ps30[2] =
|
||||
{
|
||||
{ "CASCADED_SHADOW_MAPPING", 0, 1 },
|
||||
{ "CSM_MODE", 0, 3 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cs_grass_ps30_combos =
|
||||
{
|
||||
"cs_grass_ps30", s_DynamicComboArray_cs_grass_ps30, 2, s_StaticComboArray_cs_grass_ps30, 2
|
||||
};
|
||||
|
||||
class ConstructMe_cs_grass_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_cs_grass_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cs_grass_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cs_grass_ps30 s_ConstructMe_cs_grass_ps30;
|
||||
174
materialsystem/stdshaders/fxctmp9/cs_grass_vs20.inc
Normal file
174
materialsystem/stdshaders/fxctmp9/cs_grass_vs20.inc
Normal file
@@ -0,0 +1,174 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( $DOWATERFOG == 0 ) && ( $DOPIXELFOG && $HARDWAREFOGBLEND )
|
||||
// ( $DOWATERFOG == 0 ) && ( $HARDWAREFOGBLEND == 0 ) && ( $DOPIXELFOG == 0 )
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class cs_grass_vs20_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nDOPIXELFOG;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDOPIXELFOG;
|
||||
#endif
|
||||
public:
|
||||
void SetDOPIXELFOG( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDOPIXELFOG = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
void SetDOPIXELFOG( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOPIXELFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nHARDWAREFOGBLEND;
|
||||
#ifdef _DEBUG
|
||||
bool m_bHARDWAREFOGBLEND;
|
||||
#endif
|
||||
public:
|
||||
void SetHARDWAREFOGBLEND( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
void SetHARDWAREFOGBLEND( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nHARDWAREFOGBLEND = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_grass_vs20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDOPIXELFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOPIXELFOG = g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
#ifdef _DEBUG
|
||||
m_bHARDWAREFOGBLEND = true;
|
||||
#endif // _DEBUG
|
||||
m_nHARDWAREFOGBLEND = !g_pHardwareConfig->SupportsPixelShaders_2_b() ;
|
||||
}
|
||||
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_bDOPIXELFOG && m_bHARDWAREFOGBLEND;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 4 * m_nDOPIXELFOG ) + ( 8 * m_nHARDWAREFOGBLEND ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_cs_grass_vs20 0
|
||||
class cs_grass_vs20_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nDZONE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDZONE;
|
||||
#endif
|
||||
public:
|
||||
void SetDZONE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDZONE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDZONE = true;
|
||||
#endif
|
||||
}
|
||||
void SetDZONE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDZONE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDZONE = true;
|
||||
#endif
|
||||
}
|
||||
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 )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDOWATERFOG = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_grass_vs20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bDZONE = false;
|
||||
#endif // _DEBUG
|
||||
m_nDZONE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDOWATERFOG = true;
|
||||
#endif // _DEBUG
|
||||
m_nDOWATERFOG = ( pShaderAPI->GetSceneFogMode() == MATERIAL_FOG_LINEAR_BELOW_FOG_Z ) ;
|
||||
}
|
||||
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_bDZONE && m_bDOWATERFOG;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nDZONE ) + ( 2 * m_nDOWATERFOG ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_cs_grass_vs20 vsh_forgot_to_set_dynamic_DZONE + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_cs_grass_vs20[2] =
|
||||
{
|
||||
{ "DZONE", 0, 1 },
|
||||
{ "DOWATERFOG", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_cs_grass_vs20[2] =
|
||||
{
|
||||
{ "DOPIXELFOG", 0, 1 },
|
||||
{ "HARDWAREFOGBLEND", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t cs_grass_vs20_combos =
|
||||
{
|
||||
"cs_grass_vs20", s_DynamicComboArray_cs_grass_vs20, 2, s_StaticComboArray_cs_grass_vs20, 2
|
||||
};
|
||||
|
||||
class ConstructMe_cs_grass_vs20
|
||||
{
|
||||
public:
|
||||
ConstructMe_cs_grass_vs20()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cs_grass_vs20_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cs_grass_vs20 s_ConstructMe_cs_grass_vs20;
|
||||
56
materialsystem/stdshaders/fxctmp9/cs_replay_ps30.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/cs_replay_ps30.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cs_replay_ps30_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_replay_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_cs_replay_ps30 0
|
||||
class cs_replay_ps30_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_replay_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_cs_replay_ps30 0
|
||||
static const ShaderComboSemantics_t cs_replay_ps30_combos =
|
||||
{
|
||||
"cs_replay_ps30", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_cs_replay_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_cs_replay_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cs_replay_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cs_replay_ps30 s_ConstructMe_cs_replay_ps30;
|
||||
56
materialsystem/stdshaders/fxctmp9/cs_ssao_ps30.inc
Normal file
56
materialsystem/stdshaders/fxctmp9/cs_ssao_ps30.inc
Normal file
@@ -0,0 +1,56 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class cs_ssao_ps30_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_ssao_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_cs_ssao_ps30 0
|
||||
class cs_ssao_ps30_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
cs_ssao_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_cs_ssao_ps30 0
|
||||
static const ShaderComboSemantics_t cs_ssao_ps30_combos =
|
||||
{
|
||||
"cs_ssao_ps30", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_cs_ssao_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_cs_ssao_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &cs_ssao_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_cs_ssao_ps30 s_ConstructMe_cs_ssao_ps30;
|
||||
287
materialsystem/stdshaders/fxctmp9/customcharacter_ps30.inc
Normal file
287
materialsystem/stdshaders/fxctmp9/customcharacter_ps30.inc
Normal file
@@ -0,0 +1,287 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
// ( $GENERATEBASETEXTURE == 1 ) && ( $GENERATENORMAL == 1 )
|
||||
// ( $GENERATEBASETEXTURE == 1 ) && ( GENERATEMASKS1 == 1 )
|
||||
// ( $GENERATENORMAL == 1 ) && ( $GENERATEMASKS1 == 1 )
|
||||
// ( $CHEAPFILTERING == 1 ) && ( $GENERATEBASETEXTURE == 0 )
|
||||
// ( $USEPATTERN > 0 ) && ( $GENERATEBASETEXTURE == 0 )
|
||||
// ( $GENERATEBASETEXTURE == 0 ) && ( $GENERATENORMAL == 0 ) && ( GENERATEMASKS1 == 0 )
|
||||
// ( $GENERATENORMAL == 0 ) && ( $BUMPALPHAENVMASK == 1 )
|
||||
// ( $GENERATEBASETEXTURE == 0 ) && ( $BASEALPHAPHONGMASK == 1 )
|
||||
// ( $GENERATEBASETEXTURE == 0 ) && ( $BASEALPHAENVMASK == 1 )
|
||||
#include "shaderlib/cshader.h"
|
||||
class customcharacter_ps30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nGENERATEBASETEXTURE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bGENERATEBASETEXTURE;
|
||||
#endif
|
||||
public:
|
||||
void SetGENERATEBASETEXTURE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nGENERATEBASETEXTURE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bGENERATEBASETEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
void SetGENERATEBASETEXTURE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nGENERATEBASETEXTURE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bGENERATEBASETEXTURE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nGENERATENORMAL;
|
||||
#ifdef _DEBUG
|
||||
bool m_bGENERATENORMAL;
|
||||
#endif
|
||||
public:
|
||||
void SetGENERATENORMAL( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nGENERATENORMAL = i;
|
||||
#ifdef _DEBUG
|
||||
m_bGENERATENORMAL = true;
|
||||
#endif
|
||||
}
|
||||
void SetGENERATENORMAL( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nGENERATENORMAL = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bGENERATENORMAL = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nGENERATEMASKS1;
|
||||
#ifdef _DEBUG
|
||||
bool m_bGENERATEMASKS1;
|
||||
#endif
|
||||
public:
|
||||
void SetGENERATEMASKS1( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nGENERATEMASKS1 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bGENERATEMASKS1 = true;
|
||||
#endif
|
||||
}
|
||||
void SetGENERATEMASKS1( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nGENERATEMASKS1 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bGENERATEMASKS1 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCHEAPFILTERING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCHEAPFILTERING;
|
||||
#endif
|
||||
public:
|
||||
void SetCHEAPFILTERING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCHEAPFILTERING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCHEAPFILTERING = true;
|
||||
#endif
|
||||
}
|
||||
void SetCHEAPFILTERING( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCHEAPFILTERING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCHEAPFILTERING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBASEALPHAPHONGMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASEALPHAPHONGMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBASEALPHAPHONGMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASEALPHAPHONGMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAPHONGMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBASEALPHAPHONGMASK( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBASEALPHAPHONGMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAPHONGMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBASEALPHAENVMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBASEALPHAENVMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBASEALPHAENVMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBASEALPHAENVMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBASEALPHAENVMASK( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBASEALPHAENVMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nBUMPALPHAENVMASK;
|
||||
#ifdef _DEBUG
|
||||
bool m_bBUMPALPHAENVMASK;
|
||||
#endif
|
||||
public:
|
||||
void SetBUMPALPHAENVMASK( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nBUMPALPHAENVMASK = i;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
void SetBUMPALPHAENVMASK( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nBUMPALPHAENVMASK = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPALPHAENVMASK = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSEPATTERN;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSEPATTERN;
|
||||
#endif
|
||||
public:
|
||||
void SetUSEPATTERN( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nUSEPATTERN = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEPATTERN = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSEPATTERN( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nUSEPATTERN = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEPATTERN = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
customcharacter_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bGENERATEBASETEXTURE = false;
|
||||
#endif // _DEBUG
|
||||
m_nGENERATEBASETEXTURE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bGENERATENORMAL = false;
|
||||
#endif // _DEBUG
|
||||
m_nGENERATENORMAL = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bGENERATEMASKS1 = false;
|
||||
#endif // _DEBUG
|
||||
m_nGENERATEMASKS1 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCHEAPFILTERING = false;
|
||||
#endif // _DEBUG
|
||||
m_nCHEAPFILTERING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAPHONGMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASEALPHAPHONGMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBASEALPHAENVMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBASEALPHAENVMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bBUMPALPHAENVMASK = false;
|
||||
#endif // _DEBUG
|
||||
m_nBUMPALPHAENVMASK = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSEPATTERN = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSEPATTERN = 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_bGENERATEBASETEXTURE && m_bGENERATENORMAL && m_bGENERATEMASKS1 && m_bCHEAPFILTERING && m_bBASEALPHAPHONGMASK && m_bBASEALPHAENVMASK && m_bBUMPALPHAENVMASK && m_bUSEPATTERN;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nGENERATEBASETEXTURE ) + ( 2 * m_nGENERATENORMAL ) + ( 4 * m_nGENERATEMASKS1 ) + ( 8 * m_nCHEAPFILTERING ) + ( 16 * m_nBASEALPHAPHONGMASK ) + ( 32 * m_nBASEALPHAENVMASK ) + ( 64 * m_nBUMPALPHAENVMASK ) + ( 128 * m_nUSEPATTERN ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_customcharacter_ps30 psh_forgot_to_set_static_GENERATEBASETEXTURE + psh_forgot_to_set_static_GENERATENORMAL + psh_forgot_to_set_static_GENERATEMASKS1 + psh_forgot_to_set_static_CHEAPFILTERING + psh_forgot_to_set_static_BASEALPHAPHONGMASK + psh_forgot_to_set_static_BASEALPHAENVMASK + psh_forgot_to_set_static_BUMPALPHAENVMASK + psh_forgot_to_set_static_USEPATTERN + 0
|
||||
class customcharacter_ps30_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
customcharacter_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_customcharacter_ps30 0
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_customcharacter_ps30[8] =
|
||||
{
|
||||
{ "GENERATEBASETEXTURE", 0, 1 },
|
||||
{ "GENERATENORMAL", 0, 1 },
|
||||
{ "GENERATEMASKS1", 0, 1 },
|
||||
{ "CHEAPFILTERING", 0, 1 },
|
||||
{ "BASEALPHAPHONGMASK", 0, 1 },
|
||||
{ "BASEALPHAENVMASK", 0, 1 },
|
||||
{ "BUMPALPHAENVMASK", 0, 1 },
|
||||
{ "USEPATTERN", 0, 4 },
|
||||
};
|
||||
static const ShaderComboSemantics_t customcharacter_ps30_combos =
|
||||
{
|
||||
"customcharacter_ps30", NULL, 0, s_StaticComboArray_customcharacter_ps30, 8
|
||||
};
|
||||
|
||||
class ConstructMe_customcharacter_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_customcharacter_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &customcharacter_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_customcharacter_ps30 s_ConstructMe_customcharacter_ps30;
|
||||
52
materialsystem/stdshaders/fxctmp9/customcharacter_vs30.inc
Normal file
52
materialsystem/stdshaders/fxctmp9/customcharacter_vs30.inc
Normal file
@@ -0,0 +1,52 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
||||
#include "shaderlib/cshader.h"
|
||||
class customcharacter_vs30_Static_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
customcharacter_vs30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
}
|
||||
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_customcharacter_vs30 0
|
||||
class customcharacter_vs30_Dynamic_Index
|
||||
{
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
customcharacter_vs30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
}
|
||||
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_customcharacter_vs30 0
|
||||
static const ShaderComboSemantics_t customcharacter_vs30_combos =
|
||||
{
|
||||
"customcharacter_vs30", NULL, 0, NULL, 0
|
||||
};
|
||||
|
||||
class ConstructMe_customcharacter_vs30
|
||||
{
|
||||
public:
|
||||
ConstructMe_customcharacter_vs30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &customcharacter_vs30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_customcharacter_vs30 s_ConstructMe_customcharacter_vs30;
|
||||
386
materialsystem/stdshaders/fxctmp9/customclothing_ps20b.inc
Normal file
386
materialsystem/stdshaders/fxctmp9/customclothing_ps20b.inc
Normal file
@@ -0,0 +1,386 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( ( $COMPOSITEMODE == 1 ) && ( $CASCADED_SHADOW_MAPPING != 0 ) )
|
||||
// ( ( $COMPOSITEMODE == 1 ) && ( $NUM_LIGHTS != 0 ) )
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $DYN_CSM_ENABLED == 1 )
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $CSM_MODE != 0 )
|
||||
// ( $USE_PATTERN2 == 1 ) && ( $USE_PATTERN1 == 0 )
|
||||
// ( $USE_PATTERN_OFFSET == 1 ) && ( $USE_PATTERN1 == 0 && $USE_PATTERN2 == 0 )
|
||||
// ( $SWAP_PATTERN_MASKS == 1 ) && ( $USE_PATTERN1 == 0 && $USE_PATTERN2 == 0 )
|
||||
// ( $USE_LOGO2 == 1 ) && ( $USE_LOGO1 == 0 )
|
||||
// ( $COMPOSITEMODE == 2 ) && ( $USE_PATTERN1 == 1 )
|
||||
// ( $COMPOSITEMODE == 2 ) && ( $USE_PATTERN2 == 1 )
|
||||
// ( $COMPOSITEMODE == 2 ) && ( $USE_PATTERN_OFFSET == 1 )
|
||||
// ( $COMPOSITEMODE == 2 ) && ( $USE_LOGO1 == 1 )
|
||||
// ( $COMPOSITEMODE == 2 ) && ( $USE_LOGO2 == 1 )
|
||||
// ( $AO_MODE == 1 ) && ( $COMPOSITEMODE == 1 )
|
||||
// ( $AO_MODE == 1 ) && ( $NUM_LIGHTS != 0 )
|
||||
// ( $AO_MODE == 1 ) && ( $DYN_CSM_ENABLED == 1 )
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class customclothing_ps20b_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCOMPOSITEMODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCOMPOSITEMODE;
|
||||
#endif
|
||||
public:
|
||||
void SetCOMPOSITEMODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nCOMPOSITEMODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPOSITEMODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetCOMPOSITEMODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
|
||||
m_nCOMPOSITEMODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPOSITEMODE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCSM_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCSM_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetCSM_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 0 );
|
||||
m_nCSM_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetCSM_MODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 0 );
|
||||
m_nCSM_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSE_PATTERN1;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSE_PATTERN1;
|
||||
#endif
|
||||
public:
|
||||
void SetUSE_PATTERN1( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_PATTERN1 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN1 = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSE_PATTERN1( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSE_PATTERN1 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN1 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSE_PATTERN2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSE_PATTERN2;
|
||||
#endif
|
||||
public:
|
||||
void SetUSE_PATTERN2( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_PATTERN2 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN2 = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSE_PATTERN2( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSE_PATTERN2 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN2 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSE_PATTERN_OFFSET;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSE_PATTERN_OFFSET;
|
||||
#endif
|
||||
public:
|
||||
void SetUSE_PATTERN_OFFSET( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_PATTERN_OFFSET = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN_OFFSET = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSE_PATTERN_OFFSET( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSE_PATTERN_OFFSET = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN_OFFSET = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSE_LOGO1;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSE_LOGO1;
|
||||
#endif
|
||||
public:
|
||||
void SetUSE_LOGO1( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_LOGO1 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO1 = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSE_LOGO1( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSE_LOGO1 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO1 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSE_LOGO2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSE_LOGO2;
|
||||
#endif
|
||||
public:
|
||||
void SetUSE_LOGO2( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_LOGO2 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO2 = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSE_LOGO2( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSE_LOGO2 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO2 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSWAP_PATTERN_MASKS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSWAP_PATTERN_MASKS;
|
||||
#endif
|
||||
public:
|
||||
void SetSWAP_PATTERN_MASKS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSWAP_PATTERN_MASKS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSWAP_PATTERN_MASKS = true;
|
||||
#endif
|
||||
}
|
||||
void SetSWAP_PATTERN_MASKS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSWAP_PATTERN_MASKS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSWAP_PATTERN_MASKS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
customclothing_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPOSITEMODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOMPOSITEMODE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = true;
|
||||
#endif // _DEBUG
|
||||
m_nCSM_MODE = 0 ;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN1 = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSE_PATTERN1 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN2 = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSE_PATTERN2 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN_OFFSET = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSE_PATTERN_OFFSET = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO1 = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSE_LOGO1 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO2 = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSE_LOGO2 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSWAP_PATTERN_MASKS = false;
|
||||
#endif // _DEBUG
|
||||
m_nSWAP_PATTERN_MASKS = 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_bCOMPOSITEMODE && m_bCSM_MODE && m_bUSE_PATTERN1 && m_bUSE_PATTERN2 && m_bUSE_PATTERN_OFFSET && m_bUSE_LOGO1 && m_bUSE_LOGO2 && m_bSWAP_PATTERN_MASKS;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 20 * m_nCOMPOSITEMODE ) + ( 60 * m_nCSM_MODE ) + ( 60 * m_nUSE_PATTERN1 ) + ( 120 * m_nUSE_PATTERN2 ) + ( 240 * m_nUSE_PATTERN_OFFSET ) + ( 480 * m_nUSE_LOGO1 ) + ( 960 * m_nUSE_LOGO2 ) + ( 1920 * m_nSWAP_PATTERN_MASKS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_customclothing_ps20b psh_forgot_to_set_static_COMPOSITEMODE + psh_forgot_to_set_static_USE_PATTERN1 + psh_forgot_to_set_static_USE_PATTERN2 + psh_forgot_to_set_static_USE_PATTERN_OFFSET + psh_forgot_to_set_static_USE_LOGO1 + psh_forgot_to_set_static_USE_LOGO2 + psh_forgot_to_set_static_SWAP_PATTERN_MASKS + 0
|
||||
class customclothing_ps20b_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDYN_CSM_ENABLED;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDYN_CSM_ENABLED;
|
||||
#endif
|
||||
public:
|
||||
void SetDYN_CSM_ENABLED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDYN_CSM_ENABLED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = true;
|
||||
#endif
|
||||
}
|
||||
void SetDYN_CSM_ENABLED( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDYN_CSM_ENABLED = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nAO_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bAO_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetAO_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nAO_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bAO_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetAO_MODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nAO_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bAO_MODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
customclothing_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = false;
|
||||
#endif // _DEBUG
|
||||
m_nDYN_CSM_ENABLED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bAO_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nAO_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 bAllDynamicVarsDefined = m_bNUM_LIGHTS && m_bDYN_CSM_ENABLED && m_bAO_MODE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nNUM_LIGHTS ) + ( 5 * m_nDYN_CSM_ENABLED ) + ( 10 * m_nAO_MODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_customclothing_ps20b psh_forgot_to_set_dynamic_NUM_LIGHTS + psh_forgot_to_set_dynamic_DYN_CSM_ENABLED + psh_forgot_to_set_dynamic_AO_MODE + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_customclothing_ps20b[3] =
|
||||
{
|
||||
{ "NUM_LIGHTS", 0, 4 },
|
||||
{ "DYN_CSM_ENABLED", 0, 1 },
|
||||
{ "AO_MODE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_customclothing_ps20b[8] =
|
||||
{
|
||||
{ "COMPOSITEMODE", 0, 2 },
|
||||
{ "CSM_MODE", 0, 0 },
|
||||
{ "USE_PATTERN1", 0, 1 },
|
||||
{ "USE_PATTERN2", 0, 1 },
|
||||
{ "USE_PATTERN_OFFSET", 0, 1 },
|
||||
{ "USE_LOGO1", 0, 1 },
|
||||
{ "USE_LOGO2", 0, 1 },
|
||||
{ "SWAP_PATTERN_MASKS", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t customclothing_ps20b_combos =
|
||||
{
|
||||
"customclothing_ps20b", s_DynamicComboArray_customclothing_ps20b, 3, s_StaticComboArray_customclothing_ps20b, 8
|
||||
};
|
||||
|
||||
class ConstructMe_customclothing_ps20b
|
||||
{
|
||||
public:
|
||||
ConstructMe_customclothing_ps20b()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &customclothing_ps20b_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_customclothing_ps20b s_ConstructMe_customclothing_ps20b;
|
||||
413
materialsystem/stdshaders/fxctmp9/customclothing_ps30.inc
Normal file
413
materialsystem/stdshaders/fxctmp9/customclothing_ps30.inc
Normal file
@@ -0,0 +1,413 @@
|
||||
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
||||
// ( ( $COMPOSITEMODE == 1 ) && ( $CASCADED_SHADOW_MAPPING != 0 ) )
|
||||
// ( ( $COMPOSITEMODE == 1 ) && ( $NUM_LIGHTS != 0 ) )
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $DYN_CSM_ENABLED == 1 )
|
||||
// ( $CASCADED_SHADOW_MAPPING == 0 ) && ( $CSM_MODE != 0 )
|
||||
// ( $USE_PATTERN2 == 1 ) && ( $USE_PATTERN1 == 0 )
|
||||
// ( $USE_PATTERN_OFFSET == 1 ) && ( $USE_PATTERN1 == 0 && $USE_PATTERN2 == 0 )
|
||||
// ( $SWAP_PATTERN_MASKS == 1 ) && ( $USE_PATTERN1 == 0 && $USE_PATTERN2 == 0 )
|
||||
// ( $USE_LOGO2 == 1 ) && ( $USE_LOGO1 == 0 )
|
||||
// ( $COMPOSITEMODE == 2 ) && ( $USE_PATTERN1 == 1 )
|
||||
// ( $COMPOSITEMODE == 2 ) && ( $USE_PATTERN2 == 1 )
|
||||
// ( $COMPOSITEMODE == 2 ) && ( $USE_PATTERN_OFFSET == 1 )
|
||||
// ( $COMPOSITEMODE == 2 ) && ( $USE_LOGO1 == 1 )
|
||||
// ( $COMPOSITEMODE == 2 ) && ( $USE_LOGO2 == 1 )
|
||||
// ( $AO_MODE == 1 ) && ( $COMPOSITEMODE == 1 )
|
||||
// ( $AO_MODE == 1 ) && ( $NUM_LIGHTS != 0 )
|
||||
// ( $AO_MODE == 1 ) && ( $DYN_CSM_ENABLED == 1 )
|
||||
// defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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 $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
|
||||
// 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
|
||||
#include "shaderlib/cshader.h"
|
||||
class customclothing_ps30_Static_Index
|
||||
{
|
||||
private:
|
||||
int m_nCOMPOSITEMODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCOMPOSITEMODE;
|
||||
#endif
|
||||
public:
|
||||
void SetCOMPOSITEMODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 2 );
|
||||
m_nCOMPOSITEMODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPOSITEMODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetCOMPOSITEMODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 2 );
|
||||
m_nCOMPOSITEMODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPOSITEMODE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCASCADED_SHADOW_MAPPING;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCASCADED_SHADOW_MAPPING;
|
||||
#endif
|
||||
public:
|
||||
void SetCASCADED_SHADOW_MAPPING( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nCASCADED_SHADOW_MAPPING = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = true;
|
||||
#endif
|
||||
}
|
||||
void SetCASCADED_SHADOW_MAPPING( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nCASCADED_SHADOW_MAPPING = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nCSM_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bCSM_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetCSM_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 3 );
|
||||
m_nCSM_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetCSM_MODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 3 );
|
||||
m_nCSM_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSE_PATTERN1;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSE_PATTERN1;
|
||||
#endif
|
||||
public:
|
||||
void SetUSE_PATTERN1( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_PATTERN1 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN1 = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSE_PATTERN1( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSE_PATTERN1 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN1 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSE_PATTERN2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSE_PATTERN2;
|
||||
#endif
|
||||
public:
|
||||
void SetUSE_PATTERN2( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_PATTERN2 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN2 = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSE_PATTERN2( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSE_PATTERN2 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN2 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSE_PATTERN_OFFSET;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSE_PATTERN_OFFSET;
|
||||
#endif
|
||||
public:
|
||||
void SetUSE_PATTERN_OFFSET( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_PATTERN_OFFSET = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN_OFFSET = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSE_PATTERN_OFFSET( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSE_PATTERN_OFFSET = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN_OFFSET = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSE_LOGO1;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSE_LOGO1;
|
||||
#endif
|
||||
public:
|
||||
void SetUSE_LOGO1( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_LOGO1 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO1 = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSE_LOGO1( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSE_LOGO1 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO1 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nUSE_LOGO2;
|
||||
#ifdef _DEBUG
|
||||
bool m_bUSE_LOGO2;
|
||||
#endif
|
||||
public:
|
||||
void SetUSE_LOGO2( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nUSE_LOGO2 = i;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO2 = true;
|
||||
#endif
|
||||
}
|
||||
void SetUSE_LOGO2( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nUSE_LOGO2 = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO2 = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nSWAP_PATTERN_MASKS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bSWAP_PATTERN_MASKS;
|
||||
#endif
|
||||
public:
|
||||
void SetSWAP_PATTERN_MASKS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nSWAP_PATTERN_MASKS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bSWAP_PATTERN_MASKS = true;
|
||||
#endif
|
||||
}
|
||||
void SetSWAP_PATTERN_MASKS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nSWAP_PATTERN_MASKS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSWAP_PATTERN_MASKS = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
customclothing_ps30_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bCOMPOSITEMODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nCOMPOSITEMODE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCASCADED_SHADOW_MAPPING = false;
|
||||
#endif // _DEBUG
|
||||
m_nCASCADED_SHADOW_MAPPING = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bCSM_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nCSM_MODE = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN1 = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSE_PATTERN1 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN2 = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSE_PATTERN2 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_PATTERN_OFFSET = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSE_PATTERN_OFFSET = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO1 = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSE_LOGO1 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bUSE_LOGO2 = false;
|
||||
#endif // _DEBUG
|
||||
m_nUSE_LOGO2 = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bSWAP_PATTERN_MASKS = false;
|
||||
#endif // _DEBUG
|
||||
m_nSWAP_PATTERN_MASKS = 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_bCOMPOSITEMODE && m_bCASCADED_SHADOW_MAPPING && m_bCSM_MODE && m_bUSE_PATTERN1 && m_bUSE_PATTERN2 && m_bUSE_PATTERN_OFFSET && m_bUSE_LOGO1 && m_bUSE_LOGO2 && m_bSWAP_PATTERN_MASKS;
|
||||
Assert( bAllStaticVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 20 * m_nCOMPOSITEMODE ) + ( 60 * m_nCASCADED_SHADOW_MAPPING ) + ( 120 * m_nCSM_MODE ) + ( 480 * m_nUSE_PATTERN1 ) + ( 960 * m_nUSE_PATTERN2 ) + ( 1920 * m_nUSE_PATTERN_OFFSET ) + ( 3840 * m_nUSE_LOGO1 ) + ( 7680 * m_nUSE_LOGO2 ) + ( 15360 * m_nSWAP_PATTERN_MASKS ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderStaticTest_customclothing_ps30 psh_forgot_to_set_static_COMPOSITEMODE + psh_forgot_to_set_static_CASCADED_SHADOW_MAPPING + psh_forgot_to_set_static_CSM_MODE + psh_forgot_to_set_static_USE_PATTERN1 + psh_forgot_to_set_static_USE_PATTERN2 + psh_forgot_to_set_static_USE_PATTERN_OFFSET + psh_forgot_to_set_static_USE_LOGO1 + psh_forgot_to_set_static_USE_LOGO2 + psh_forgot_to_set_static_SWAP_PATTERN_MASKS + 0
|
||||
class customclothing_ps30_Dynamic_Index
|
||||
{
|
||||
private:
|
||||
int m_nNUM_LIGHTS;
|
||||
#ifdef _DEBUG
|
||||
bool m_bNUM_LIGHTS;
|
||||
#endif
|
||||
public:
|
||||
void SetNUM_LIGHTS( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 4 );
|
||||
m_nNUM_LIGHTS = i;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
void SetNUM_LIGHTS( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 4 );
|
||||
m_nNUM_LIGHTS = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nDYN_CSM_ENABLED;
|
||||
#ifdef _DEBUG
|
||||
bool m_bDYN_CSM_ENABLED;
|
||||
#endif
|
||||
public:
|
||||
void SetDYN_CSM_ENABLED( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nDYN_CSM_ENABLED = i;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = true;
|
||||
#endif
|
||||
}
|
||||
void SetDYN_CSM_ENABLED( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nDYN_CSM_ENABLED = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = true;
|
||||
#endif
|
||||
}
|
||||
private:
|
||||
int m_nAO_MODE;
|
||||
#ifdef _DEBUG
|
||||
bool m_bAO_MODE;
|
||||
#endif
|
||||
public:
|
||||
void SetAO_MODE( int i )
|
||||
{
|
||||
Assert( i >= 0 && i <= 1 );
|
||||
m_nAO_MODE = i;
|
||||
#ifdef _DEBUG
|
||||
m_bAO_MODE = true;
|
||||
#endif
|
||||
}
|
||||
void SetAO_MODE( bool i )
|
||||
{
|
||||
Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
|
||||
m_nAO_MODE = i ? 1 : 0;
|
||||
#ifdef _DEBUG
|
||||
m_bAO_MODE = true;
|
||||
#endif
|
||||
}
|
||||
public:
|
||||
// CONSTRUCTOR
|
||||
customclothing_ps30_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
m_bNUM_LIGHTS = false;
|
||||
#endif // _DEBUG
|
||||
m_nNUM_LIGHTS = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bDYN_CSM_ENABLED = false;
|
||||
#endif // _DEBUG
|
||||
m_nDYN_CSM_ENABLED = 0;
|
||||
#ifdef _DEBUG
|
||||
m_bAO_MODE = false;
|
||||
#endif // _DEBUG
|
||||
m_nAO_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 bAllDynamicVarsDefined = m_bNUM_LIGHTS && m_bDYN_CSM_ENABLED && m_bAO_MODE;
|
||||
Assert( bAllDynamicVarsDefined );
|
||||
#endif // _DEBUG
|
||||
return ( 1 * m_nNUM_LIGHTS ) + ( 5 * m_nDYN_CSM_ENABLED ) + ( 10 * m_nAO_MODE ) + 0;
|
||||
}
|
||||
};
|
||||
#define shaderDynamicTest_customclothing_ps30 psh_forgot_to_set_dynamic_NUM_LIGHTS + psh_forgot_to_set_dynamic_DYN_CSM_ENABLED + psh_forgot_to_set_dynamic_AO_MODE + 0
|
||||
|
||||
static const ShaderComboInformation_t s_DynamicComboArray_customclothing_ps30[3] =
|
||||
{
|
||||
{ "NUM_LIGHTS", 0, 4 },
|
||||
{ "DYN_CSM_ENABLED", 0, 1 },
|
||||
{ "AO_MODE", 0, 1 },
|
||||
};
|
||||
|
||||
static const ShaderComboInformation_t s_StaticComboArray_customclothing_ps30[9] =
|
||||
{
|
||||
{ "COMPOSITEMODE", 0, 2 },
|
||||
{ "CASCADED_SHADOW_MAPPING", 0, 1 },
|
||||
{ "CSM_MODE", 0, 3 },
|
||||
{ "USE_PATTERN1", 0, 1 },
|
||||
{ "USE_PATTERN2", 0, 1 },
|
||||
{ "USE_PATTERN_OFFSET", 0, 1 },
|
||||
{ "USE_LOGO1", 0, 1 },
|
||||
{ "USE_LOGO2", 0, 1 },
|
||||
{ "SWAP_PATTERN_MASKS", 0, 1 },
|
||||
};
|
||||
static const ShaderComboSemantics_t customclothing_ps30_combos =
|
||||
{
|
||||
"customclothing_ps30", s_DynamicComboArray_customclothing_ps30, 3, s_StaticComboArray_customclothing_ps30, 9
|
||||
};
|
||||
|
||||
class ConstructMe_customclothing_ps30
|
||||
{
|
||||
public:
|
||||
ConstructMe_customclothing_ps30()
|
||||
{
|
||||
GetShaderDLL()->AddShaderComboInformation( &customclothing_ps30_combos );
|
||||
}
|
||||
};
|
||||
|
||||
static ConstructMe_customclothing_ps30 s_ConstructMe_customclothing_ps30;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user