mirror of
https://github.com/Gigaslav/HL2Overcharged.git
synced 2026-01-01 09:48:38 +03:00
74 lines
1.6 KiB
C++
74 lines
1.6 KiB
C++
// ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
|
|
// defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
|
|
|
|
#ifndef DEBUGDRAWENVMAPMASK_VS20_H
|
|
#define DEBUGDRAWENVMAPMASK_VS20_H
|
|
|
|
#include "shaderapi/ishaderapi.h"
|
|
#include "shaderapi/ishadershadow.h"
|
|
#include "materialsystem/imaterialvar.h"
|
|
|
|
class DebugDrawEnvmapMask_vs20_Static_Index
|
|
{
|
|
public:
|
|
DebugDrawEnvmapMask_vs20_Static_Index( IShaderShadow* pShaderShadow, IMaterialVar** params )
|
|
{
|
|
}
|
|
|
|
int GetIndex() const
|
|
{
|
|
return 0;
|
|
}
|
|
};
|
|
|
|
#define shaderStaticTest_DebugDrawEnvmapMask_vs20 1
|
|
|
|
|
|
class DebugDrawEnvmapMask_vs20_Dynamic_Index
|
|
{
|
|
unsigned int m_nCOMPRESSED_VERTS : 2;
|
|
unsigned int m_nSKINNING : 2;
|
|
#ifdef _DEBUG
|
|
bool m_bCOMPRESSED_VERTS : 1;
|
|
bool m_bSKINNING : 1;
|
|
#endif // _DEBUG
|
|
public:
|
|
void SetCOMPRESSED_VERTS( int i )
|
|
{
|
|
Assert( i >= 0 && i <= 1 );
|
|
m_nCOMPRESSED_VERTS = i;
|
|
#ifdef _DEBUG
|
|
m_bCOMPRESSED_VERTS = true;
|
|
#endif // _DEBUG
|
|
}
|
|
|
|
void SetSKINNING( int i )
|
|
{
|
|
Assert( i >= 0 && i <= 1 );
|
|
m_nSKINNING = i;
|
|
#ifdef _DEBUG
|
|
m_bSKINNING = true;
|
|
#endif // _DEBUG
|
|
}
|
|
|
|
DebugDrawEnvmapMask_vs20_Dynamic_Index( IShaderDynamicAPI* pShaderAPI )
|
|
{
|
|
m_nCOMPRESSED_VERTS = 0;
|
|
m_nSKINNING = 0;
|
|
#ifdef _DEBUG
|
|
m_bCOMPRESSED_VERTS = false;
|
|
m_bSKINNING = false;
|
|
#endif // _DEBUG
|
|
}
|
|
|
|
int GetIndex() const
|
|
{
|
|
Assert( m_bCOMPRESSED_VERTS && m_bSKINNING );
|
|
return ( 1 * m_nCOMPRESSED_VERTS ) + ( 2 * m_nSKINNING ) + 0;
|
|
}
|
|
};
|
|
|
|
#define shaderDynamicTest_DebugDrawEnvmapMask_vs20 vsh_forgot_to_set_dynamic_COMPRESSED_VERTS + vsh_forgot_to_set_dynamic_SKINNING
|
|
|
|
|
|
#endif // DEBUGDRAWENVMAPMASK_VS20_H
|