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.

42 lines
1017 B

  1. //====== Copyright � 1996-2009, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose: common definitions for post-processing effects
  4. //
  5. //=============================================================================
  6. #ifndef POSTPROCESS_SHARED_H
  7. #define POSTPROCESS_SHARED_H
  8. #if defined( COMPILER_MSVC )
  9. #pragma once
  10. #endif
  11. enum PostProcessParameterNames_t
  12. {
  13. PPPN_FADE_TIME = 0,
  14. PPPN_LOCAL_CONTRAST_STRENGTH,
  15. PPPN_LOCAL_CONTRAST_EDGE_STRENGTH,
  16. PPPN_VIGNETTE_START,
  17. PPPN_VIGNETTE_END,
  18. PPPN_VIGNETTE_BLUR_STRENGTH,
  19. PPPN_FADE_TO_BLACK_STRENGTH,
  20. PPPN_DEPTH_BLUR_FOCAL_DISTANCE,
  21. PPPN_DEPTH_BLUR_STRENGTH,
  22. PPPN_SCREEN_BLUR_STRENGTH,
  23. PPPN_FILM_GRAIN_STRENGTH,
  24. POST_PROCESS_PARAMETER_COUNT
  25. };
  26. struct PostProcessParameters_t
  27. {
  28. PostProcessParameters_t()
  29. {
  30. memset( m_flParameters, 0, sizeof( m_flParameters ) );
  31. m_flParameters[ PPPN_VIGNETTE_START ] = 0.8f;
  32. m_flParameters[ PPPN_VIGNETTE_END ] = 1.1f;
  33. }
  34. float m_flParameters[ POST_PROCESS_PARAMETER_COUNT ];
  35. };
  36. #endif // POSTPROCESS_SHARED_H