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.

37 lines
856 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Header: $
  6. // $NoKeywords: $
  7. //=============================================================================//
  8. #include "shaderlib/CShader.h"
  9. // memdbgon must be the last include file in a .cpp file!!!
  10. #include "tier0/memdbgon.h"
  11. BEGIN_SHADER( VolumetricFog, "Help for VolumetricFog" )
  12. BEGIN_SHADER_PARAMS
  13. END_SHADER_PARAMS
  14. SHADER_INIT
  15. {
  16. }
  17. SHADER_DRAW
  18. {
  19. SHADOW_STATE
  20. {
  21. pShaderShadow->DepthFunc( SHADER_DEPTHFUNC_NEAREROREQUAL );
  22. pShaderShadow->EnableDepthWrites( false );
  23. pShaderShadow->BlendFunc( SHADER_BLEND_ONE, SHADER_BLEND_ONE_MINUS_SRC_ALPHA );
  24. pShaderShadow->EnableBlending( true );
  25. pShaderShadow->DrawFlags( SHADER_DRAW_POSITION | SHADER_DRAW_COLOR );
  26. }
  27. DYNAMIC_STATE
  28. {
  29. }
  30. Draw();
  31. }
  32. END_SHADER