Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

287 lines
7.4 KiB

// 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;