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.

31 lines
867 B

  1. //========== Copyright (c) Valve Corporation, All rights reserved. ==========//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //===========================================================================//
  8. #ifndef COMMON_HLSL_CONSTS_H_
  9. #define COMMON_HLSL_CONSTS_H_
  10. #ifdef NV3X
  11. #define PSHADER_VECT_SCALE 20.0
  12. #define VSHADER_VECT_SCALE (1.0 / (PSHADER_VECT_SCALE) )
  13. #else
  14. #define PSHADER_VECT_SCALE 1.0
  15. #define VSHADER_VECT_SCALE 1.0
  16. #endif
  17. // GR - HDR luminance maps to 0..n range
  18. // IMPORTANT: Keep the same value as in materialsystem_global.h
  19. // HDRFIXME: Make this a pixel shader constant?
  20. #define MAX_HDR_OVERBRIGHT 16.0f
  21. #define LINEAR_FOG_COLOR 29
  22. #define TONE_MAPPING_SCALE_PSH_CONSTANT 30
  23. #define DEPTH_FEATHER_PROJ_TO_VIEW_Z 13
  24. #define DEPTH_FEATHER_PROJ_TO_VIEW_W 14
  25. #define DEPTH_FEATHER_VIEWPORT_MAD 15
  26. #endif //#ifndef COMMON_HLSL_CONSTS_H_