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.

89 lines
2.5 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. #include "shaderlib/cshader.h"
  8. class debugdrawenvmapmask_ps20_Static_Index
  9. {
  10. public:
  11. // CONSTRUCTOR
  12. debugdrawenvmapmask_ps20_Static_Index( IShaderShadow *pShaderShadow, IMaterialVar **params )
  13. {
  14. }
  15. int GetIndex()
  16. {
  17. // Asserts to make sure that we aren't using any skipped combinations.
  18. // Asserts to make sure that we are setting all of the combination vars.
  19. #ifdef _DEBUG
  20. #endif // _DEBUG
  21. return 0;
  22. }
  23. };
  24. #define shaderStaticTest_debugdrawenvmapmask_ps20 0
  25. class debugdrawenvmapmask_ps20_Dynamic_Index
  26. {
  27. private:
  28. int m_nSHOWALPHA;
  29. #ifdef _DEBUG
  30. bool m_bSHOWALPHA;
  31. #endif
  32. public:
  33. void SetSHOWALPHA( int i )
  34. {
  35. Assert( i >= 0 && i <= 1 );
  36. m_nSHOWALPHA = i;
  37. #ifdef _DEBUG
  38. m_bSHOWALPHA = true;
  39. #endif
  40. }
  41. void SetSHOWALPHA( bool i )
  42. {
  43. Assert( ( i ? 1 : 0 ) >= 0 && ( i ? 1 : 0 ) <= 1 );
  44. m_nSHOWALPHA = i ? 1 : 0;
  45. #ifdef _DEBUG
  46. m_bSHOWALPHA = true;
  47. #endif
  48. }
  49. public:
  50. // CONSTRUCTOR
  51. debugdrawenvmapmask_ps20_Dynamic_Index( IShaderDynamicAPI *pShaderAPI )
  52. {
  53. #ifdef _DEBUG
  54. m_bSHOWALPHA = false;
  55. #endif // _DEBUG
  56. m_nSHOWALPHA = 0;
  57. }
  58. int GetIndex()
  59. {
  60. // Asserts to make sure that we aren't using any skipped combinations.
  61. // Asserts to make sure that we are setting all of the combination vars.
  62. #ifdef _DEBUG
  63. bool bAllDynamicVarsDefined = m_bSHOWALPHA;
  64. Assert( bAllDynamicVarsDefined );
  65. #endif // _DEBUG
  66. return ( 1 * m_nSHOWALPHA ) + 0;
  67. }
  68. };
  69. #define shaderDynamicTest_debugdrawenvmapmask_ps20 psh_forgot_to_set_dynamic_SHOWALPHA + 0
  70. static const ShaderComboInformation_t s_DynamicComboArray_DebugDrawEnvmapMask_ps20[1] =
  71. {
  72. { "SHOWALPHA", 0, 1 },
  73. };
  74. static const ShaderComboSemantics_t DebugDrawEnvmapMask_ps20_combos =
  75. {
  76. "DebugDrawEnvmapMask_ps20", s_DynamicComboArray_DebugDrawEnvmapMask_ps20, 1, NULL, 0
  77. };
  78. class ConstructMe_DebugDrawEnvmapMask_ps20
  79. {
  80. public:
  81. ConstructMe_DebugDrawEnvmapMask_ps20()
  82. {
  83. GetShaderDLL()->AddShaderComboInformation( &DebugDrawEnvmapMask_ps20_combos );
  84. }
  85. };
  86. static ConstructMe_DebugDrawEnvmapMask_ps20 s_ConstructMe_DebugDrawEnvmapMask_ps20;