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.

75 lines
1.9 KiB

  1. //========= Copyright 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 RenderParamVector_t
  15. {
  16. VECTOR_RENDERPARM_HMDWARP_LEFT_CENTRE = 0,
  17. VECTOR_RENDERPARM_HMDWARP_LEFT_COEFF012,
  18. VECTOR_RENDERPARM_HMDWARP_LEFT_COEFF34_RED_OFFSET,
  19. VECTOR_RENDERPARM_HMDWARP_RIGHT_CENTRE,
  20. VECTOR_RENDERPARM_HMDWARP_RIGHT_COEFF012,
  21. VECTOR_RENDERPARM_HMDWARP_RIGHT_COEFF34_BLUE_OFFSET,
  22. VECTOR_RENDERPARM_HMDWARP_GROW_OUTIN,
  23. VECTOR_RENDERPARM_HMDWARP_GROW_ABOVEBELOW,
  24. VECTOR_RENDERPARM_HMDWARP_ASPECT,
  25. INT_RENDERPARM_DISTORTION_TYPE,
  26. MAX_VECTOR_RENDER_PARMS = 20
  27. };
  28. #define MAX_FLOAT_RENDER_PARMS 20
  29. enum RenderParamInt_t
  30. {
  31. INT_RENDERPARM_ENABLE_FIXED_LIGHTING = 0,
  32. INT_RENDERPARM_MORPH_ACCUMULATOR_X_OFFSET,
  33. INT_RENDERPARM_MORPH_ACCUMULATOR_Y_OFFSET,
  34. INT_RENDERPARM_MORPH_ACCUMULATOR_SUBRECT_WIDTH,
  35. INT_RENDERPARM_MORPH_ACCUMULATOR_SUBRECT_HEIGHT,
  36. INT_RENDERPARM_MORPH_ACCUMULATOR_4TUPLE_COUNT,
  37. INT_RENDERPARM_MORPH_WEIGHT_X_OFFSET,
  38. INT_RENDERPARM_MORPH_WEIGHT_Y_OFFSET,
  39. INT_RENDERPARM_MORPH_WEIGHT_SUBRECT_WIDTH,
  40. INT_RENDERPARM_MORPH_WEIGHT_SUBRECT_HEIGHT,
  41. INT_RENDERPARM_WRITE_DEPTH_TO_DESTALPHA,
  42. INT_RENDERPARM_BACK_BUFFER_INDEX,
  43. MAX_INT_RENDER_PARMS = 20
  44. };
  45. // for INT_RENDERPARM_BACK_BUFFER_INDEX
  46. #define BACK_BUFFER_INDEX_DEFAULT 0
  47. #define BACK_BUFFER_INDEX_HDR 1
  48. enum RenderParamTexture_t
  49. {
  50. TEXTURE_RENDERPARM_AMBIENT_OCCLUSION = 0,
  51. MAX_TEXTURE_RENDER_PARMS = 2
  52. };
  53. // ENABLE_FIXED_LIGHTING modes:
  54. #define ENABLE_FIXED_LIGHTING_NONE 0
  55. #define ENABLE_FIXED_LIGHTING_BASICLIGHT 1
  56. #define ENABLE_FIXED_LIGHTING_OUTPUTMRTS_FOR_DEFERRED_LIGHTING 2
  57. #define ENABLE_FIXED_LIGHTING_OUTPUTNORMAL_AND_DEPTH 3
  58. #endif // RENDERPARM_H