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.

43 lines
934 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Naively sets the depth buffer values without testing the old values and without writing to alpha or color
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #include "shaderlib/CShader.h"
  8. // memdbgon must be the last include file in a .cpp file!!!
  9. #include "tier0/memdbgon.h"
  10. DEFINE_FALLBACK_SHADER( SetZ, SetZ_DX6 )
  11. BEGIN_SHADER_FLAGS( SetZ_DX6, "Help for SetZ_DX6", SHADER_NOT_EDITABLE )
  12. BEGIN_SHADER_PARAMS
  13. END_SHADER_PARAMS
  14. SHADER_INIT_PARAMS()
  15. {
  16. }
  17. SHADER_INIT
  18. {
  19. }
  20. SHADER_DRAW
  21. {
  22. SHADOW_STATE
  23. {
  24. pShaderShadow->EnableColorWrites( false );
  25. pShaderShadow->EnableAlphaWrites( false );
  26. pShaderShadow->DepthFunc( SHADER_DEPTHFUNC_ALWAYS );
  27. pShaderShadow->DrawFlags( SHADER_DRAW_POSITION );
  28. }
  29. DYNAMIC_STATE
  30. {
  31. }
  32. Draw();
  33. }
  34. END_SHADER