Team Fortress 2 Source Code as on 22/4/2020
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.

41 lines
764 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  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( WriteZ, WriteZ_DX6 )
  11. BEGIN_SHADER_FLAGS( WriteZ_DX6, "Help for WriteZ_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->DrawFlags( SHADER_DRAW_POSITION );
  27. }
  28. DYNAMIC_STATE
  29. {
  30. }
  31. Draw();
  32. }
  33. END_SHADER