Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
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.

213 lines
4.3 KiB

5 years ago
#include "shaderlib/cshader.h"
class flashlight_ps20_Static_Index
{
private:
int m_nNORMALMAP;
#ifdef _DEBUG
bool m_bNORMALMAP;
#endif
public:
void SetNORMALMAP( int i )
{
Assert( i >= 0 && i <= 2 );
m_nNORMALMAP = i;
#ifdef _DEBUG
m_bNORMALMAP = true;
#endif
}
void SetNORMALMAP( bool i )
{
m_nNORMALMAP = i ? 1 : 0;
#ifdef _DEBUG
m_bNORMALMAP = true;
#endif
}
private:
int m_nNORMALMAP2;
#ifdef _DEBUG
bool m_bNORMALMAP2;
#endif
public:
void SetNORMALMAP2( int i )
{
Assert( i >= 0 && i <= 1 );
m_nNORMALMAP2 = i;
#ifdef _DEBUG
m_bNORMALMAP2 = true;
#endif
}
void SetNORMALMAP2( bool i )
{
m_nNORMALMAP2 = i ? 1 : 0;
#ifdef _DEBUG
m_bNORMALMAP2 = true;
#endif
}
private:
int m_nWORLDVERTEXTRANSITION;
#ifdef _DEBUG
bool m_bWORLDVERTEXTRANSITION;
#endif
public:
void SetWORLDVERTEXTRANSITION( int i )
{
Assert( i >= 0 && i <= 1 );
m_nWORLDVERTEXTRANSITION = i;
#ifdef _DEBUG
m_bWORLDVERTEXTRANSITION = true;
#endif
}
void SetWORLDVERTEXTRANSITION( bool i )
{
m_nWORLDVERTEXTRANSITION = i ? 1 : 0;
#ifdef _DEBUG
m_bWORLDVERTEXTRANSITION = true;
#endif
}
private:
int m_nSEAMLESS;
#ifdef _DEBUG
bool m_bSEAMLESS;
#endif
public:
void SetSEAMLESS( int i )
{
Assert( i >= 0 && i <= 1 );
m_nSEAMLESS = i;
#ifdef _DEBUG
m_bSEAMLESS = true;
#endif
}
void SetSEAMLESS( bool i )
{
m_nSEAMLESS = i ? 1 : 0;
#ifdef _DEBUG
m_bSEAMLESS = true;
#endif
}
private:
int m_nDETAILTEXTURE;
#ifdef _DEBUG
bool m_bDETAILTEXTURE;
#endif
public:
void SetDETAILTEXTURE( int i )
{
Assert( i >= 0 && i <= 1 );
m_nDETAILTEXTURE = i;
#ifdef _DEBUG
m_bDETAILTEXTURE = true;
#endif
}
void SetDETAILTEXTURE( bool i )
{
m_nDETAILTEXTURE = i ? 1 : 0;
#ifdef _DEBUG
m_bDETAILTEXTURE = true;
#endif
}
private:
int m_nDETAIL_BLEND_MODE;
#ifdef _DEBUG
bool m_bDETAIL_BLEND_MODE;
#endif
public:
void SetDETAIL_BLEND_MODE( int i )
{
Assert( i >= 0 && i <= 1 );
m_nDETAIL_BLEND_MODE = i;
#ifdef _DEBUG
m_bDETAIL_BLEND_MODE = true;
#endif
}
void SetDETAIL_BLEND_MODE( bool i )
{
m_nDETAIL_BLEND_MODE = i ? 1 : 0;
#ifdef _DEBUG
m_bDETAIL_BLEND_MODE = true;
#endif
}
public:
flashlight_ps20_Static_Index( )
{
#ifdef _DEBUG
m_bNORMALMAP = false;
#endif // _DEBUG
m_nNORMALMAP = 0;
#ifdef _DEBUG
m_bNORMALMAP2 = false;
#endif // _DEBUG
m_nNORMALMAP2 = 0;
#ifdef _DEBUG
m_bWORLDVERTEXTRANSITION = false;
#endif // _DEBUG
m_nWORLDVERTEXTRANSITION = 0;
#ifdef _DEBUG
m_bSEAMLESS = false;
#endif // _DEBUG
m_nSEAMLESS = 0;
#ifdef _DEBUG
m_bDETAILTEXTURE = false;
#endif // _DEBUG
m_nDETAILTEXTURE = 0;
#ifdef _DEBUG
m_bDETAIL_BLEND_MODE = false;
#endif // _DEBUG
m_nDETAIL_BLEND_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_bNORMALMAP && m_bNORMALMAP2 && m_bWORLDVERTEXTRANSITION && m_bSEAMLESS && m_bDETAILTEXTURE && m_bDETAIL_BLEND_MODE;
Assert( bAllStaticVarsDefined );
#endif // _DEBUG
return ( 2 * m_nNORMALMAP ) + ( 6 * m_nNORMALMAP2 ) + ( 12 * m_nWORLDVERTEXTRANSITION ) + ( 24 * m_nSEAMLESS ) + ( 48 * m_nDETAILTEXTURE ) + ( 96 * m_nDETAIL_BLEND_MODE ) + 0;
}
};
#define shaderStaticTest_flashlight_ps20 psh_forgot_to_set_static_NORMALMAP + psh_forgot_to_set_static_NORMALMAP2 + psh_forgot_to_set_static_WORLDVERTEXTRANSITION + psh_forgot_to_set_static_SEAMLESS + psh_forgot_to_set_static_DETAILTEXTURE + psh_forgot_to_set_static_DETAIL_BLEND_MODE + 0
class flashlight_ps20_Dynamic_Index
{
private:
int m_nPIXELFOGTYPE;
#ifdef _DEBUG
bool m_bPIXELFOGTYPE;
#endif
public:
void SetPIXELFOGTYPE( int i )
{
Assert( i >= 0 && i <= 1 );
m_nPIXELFOGTYPE = i;
#ifdef _DEBUG
m_bPIXELFOGTYPE = true;
#endif
}
void SetPIXELFOGTYPE( bool i )
{
m_nPIXELFOGTYPE = i ? 1 : 0;
#ifdef _DEBUG
m_bPIXELFOGTYPE = true;
#endif
}
public:
flashlight_ps20_Dynamic_Index()
{
#ifdef _DEBUG
m_bPIXELFOGTYPE = false;
#endif // _DEBUG
m_nPIXELFOGTYPE = 0;
}
int GetIndex()
{
// Asserts to make sure that we aren't using any skipped combinations.
// Asserts to make sure that we are setting all of the combination vars.
#ifdef _DEBUG
bool bAllDynamicVarsDefined = m_bPIXELFOGTYPE;
Assert( bAllDynamicVarsDefined );
#endif // _DEBUG
return ( 1 * m_nPIXELFOGTYPE ) + 0;
}
};
#define shaderDynamicTest_flashlight_ps20 psh_forgot_to_set_dynamic_PIXELFOGTYPE + 0