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.

27 lines
743 B

  1. //========= Copyright 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. #endif //#ifndef COMMON_HLSL_CONSTS_H_