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.

94 lines
2.9 KiB

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