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.

90 lines
2.4 KiB

  1. // ALL SKIP STATEMENTS THAT AFFECT THIS SHADER!!!
  2. // ( $STYLE == 0 )
  3. // defined $PIXELFOGTYPE && defined $WRITEWATERFOGTODESTALPHA && ( $PIXELFOGTYPE != 1 ) && $WRITEWATERFOGTODESTALPHA
  4. // defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPTINT && $LIGHTING_PREVIEW && $FASTPATHENVMAPTINT
  5. // defined $LIGHTING_PREVIEW && defined $FASTPATHENVMAPCONTRAST && $LIGHTING_PREVIEW && $FASTPATHENVMAPCONTRAST
  6. // defined $LIGHTING_PREVIEW && defined $FASTPATH && $LIGHTING_PREVIEW && $FASTPATH
  7. // ($FLASHLIGHT || $FLASHLIGHTSHADOWS) && $LIGHTING_PREVIEW
  8. #include "shaderlib/cshader.h"
  9. class customclothing_ps20b_Static_Index
  10. {
  11. private:
  12. int m_nSTYLE;
  13. #ifdef _DEBUG
  14. bool m_bSTYLE;
  15. #endif
  16. public:
  17. void SetSTYLE( int i )
  18. {
  19. Assert( i >= 0 && i <= 6 );
  20. m_nSTYLE = i;
  21. #ifdef _DEBUG
  22. m_bSTYLE = true;
  23. #endif
  24. }
  25. void SetSTYLE( bool i )
  26. {
  27. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 6 );
  28. m_nSTYLE = i ? 1 : 0;
  29. #ifdef _DEBUG
  30. m_bSTYLE = true;
  31. #endif
  32. }
  33. public:
  34. // CONSTRUCTOR
  35. customclothing_ps20b_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
  36. {
  37. #ifdef _DEBUG
  38. m_bSTYLE = false;
  39. #endif // _DEBUG
  40. m_nSTYLE = 0;
  41. }
  42. int GetIndex()
  43. {
  44. // Asserts to make sure that we aren't using any skipped combinations.
  45. // Asserts to make sure that we are setting all of the combination vars.
  46. #ifdef _DEBUG
  47. bool bAllStaticVarsDefined = m_bSTYLE;
  48. Assert( bAllStaticVarsDefined );
  49. #endif // _DEBUG
  50. return ( 1 * m_nSTYLE ) + 0;
  51. }
  52. };
  53. #define shaderStaticTest_customclothing_ps20b psh_forgot_to_set_static_STYLE + 0
  54. class customclothing_ps20b_Dynamic_Index
  55. {
  56. public:
  57. // CONSTRUCTOR
  58. customclothing_ps20b_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
  59. {
  60. }
  61. int GetIndex()
  62. {
  63. // Asserts to make sure that we aren't using any skipped combinations.
  64. // Asserts to make sure that we are setting all of the combination vars.
  65. #ifdef _DEBUG
  66. #endif // _DEBUG
  67. return 0;
  68. }
  69. };
  70. #define shaderDynamicTest_customclothing_ps20b 0
  71. static const ShaderComboInformation_t s_StaticComboArray_customclothing_ps20b[1] =
  72. {
  73. { "STYLE", 0, 6 },
  74. };
  75. static const ShaderComboSemantics_t customclothing_ps20b_combos =
  76. {
  77. "customclothing_ps20b", NULL, 0, s_StaticComboArray_customclothing_ps20b, 1
  78. };
  79. class ConstructMe_customclothing_ps20b
  80. {
  81. public:
  82. ConstructMe_customclothing_ps20b()
  83. {
  84. GetShaderDLL()->AddShaderComboInformation( &customclothing_ps20b_combos );
  85. }
  86. };
  87. static ConstructMe_customclothing_ps20b s_ConstructMe_customclothing_ps20b;