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.

85 lines
2.0 KiB

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