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.

79 lines
1.8 KiB

  1. //===== Copyright � 1996-2007, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: defines constants to use for the materialsystem and shaderapi
  4. // SetxxxRenderingParameter functions
  5. //
  6. // $NoKeywords: $
  7. //
  8. //===========================================================================//
  9. #ifndef RENDERPARM_H
  10. #define RENDERPARM_H
  11. #ifndef _WIN32
  12. #pragma once
  13. #endif
  14. enum RenderParamInt_t
  15. {
  16. INT_RENDERPARM_ENABLE_FIXED_LIGHTING = 0,
  17. INT_RENDERPARM_MORPH_ACCUMULATOR_X_OFFSET,
  18. INT_RENDERPARM_MORPH_ACCUMULATOR_Y_OFFSET,
  19. INT_RENDERPARM_MORPH_ACCUMULATOR_SUBRECT_WIDTH,
  20. INT_RENDERPARM_MORPH_ACCUMULATOR_SUBRECT_HEIGHT,
  21. INT_RENDERPARM_MORPH_ACCUMULATOR_4TUPLE_COUNT,
  22. INT_RENDERPARM_MORPH_WEIGHT_X_OFFSET,
  23. INT_RENDERPARM_MORPH_WEIGHT_Y_OFFSET,
  24. INT_RENDERPARM_MORPH_WEIGHT_SUBRECT_WIDTH,
  25. INT_RENDERPARM_MORPH_WEIGHT_SUBRECT_HEIGHT,
  26. INT_RENDERPARM_WRITE_DEPTH_TO_DESTALPHA,
  27. INT_RENDERPARM_BACK_BUFFER_INDEX,
  28. INT_RENDERPARM_PORTAL_RECURSION_DEPTH,
  29. MAX_INT_RENDER_PARMS = 20
  30. };
  31. // for INT_RENDERPARM_BACK_BUFFER_INDEX
  32. #define BACK_BUFFER_INDEX_DEFAULT 0
  33. #define BACK_BUFFER_INDEX_HDR 1
  34. enum RenderParamFloat_t
  35. {
  36. FLOAT_RENDERPARM_DEST_ALPHA_DEPTH_SCALE = 0,
  37. FLOAT_RENDERPARM_SPECULAR_POWER,
  38. MAX_FLOAT_RENDER_PARMS = 20
  39. };
  40. enum RenderParamTexture_t
  41. {
  42. TEXTURE_RENDERPARM_AMBIENT_OCCLUSION = 0,
  43. TEXTURE_RENDERPARM_FOW = 1,
  44. MAX_TEXTURE_RENDER_PARMS = 2
  45. };
  46. enum RenderParamVector_t
  47. {
  48. VECTOR_RENDERPARM_GLOBAL_LIGHT_DIRECTION = 0,
  49. VECTOR_RENDERPARM_GLOBAL_FOW_MINS,
  50. VECTOR_RENDERPARM_GLOBAL_FOW_MAXS,
  51. VECTOR_RENDERPARM_WIND_DIRECTION,
  52. MAX_VECTOR_RENDER_PARMS = 20
  53. };
  54. // ENABLE_FIXED_LIGHTING modes:
  55. #define ENABLE_FIXED_LIGHTING_NONE 0
  56. #define ENABLE_FIXED_LIGHTING_BASICLIGHT 1
  57. #define ENABLE_FIXED_LIGHTING_OUTPUTMRTS_FOR_DEFERRED_LIGHTING 2
  58. #define ENABLE_FIXED_LIGHTING_OUTPUTNORMAL_AND_DEPTH 3
  59. #endif // RENDERPARM_H