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.

71 lines
2.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef VERTEXLITGENERIC_DX95_HELPER_H
  8. #define VERTEXLITGENERIC_DX95_HELPER_H
  9. #include <string.h>
  10. //-----------------------------------------------------------------------------
  11. // Forward declarations
  12. //-----------------------------------------------------------------------------
  13. class CBaseVSShader;
  14. class IMaterialVar;
  15. class IShaderDynamicAPI;
  16. class IShaderShadow;
  17. //-----------------------------------------------------------------------------
  18. // Init params/ init/ draw methods
  19. //-----------------------------------------------------------------------------
  20. struct VertexLitGeneric_DX95_Vars_t
  21. {
  22. VertexLitGeneric_DX95_Vars_t() { memset( this, 0xFF, sizeof(VertexLitGeneric_DX95_Vars_t) ); }
  23. int m_nBaseTexture;
  24. int m_nBaseTextureFrame;
  25. int m_nBaseTexture2;
  26. int m_nBaseTextureFrame2;
  27. int m_nBaseTexture3;
  28. int m_nBaseTextureFrame3;
  29. int m_nBaseTextureTransform;
  30. int m_nAlbedo;
  31. int m_nSelfIllumTint;
  32. int m_nDetail;
  33. int m_nDetailFrame;
  34. int m_nDetailScale;
  35. int m_nEnvmap;
  36. int m_nEnvmapFrame;
  37. int m_nEnvmapMask;
  38. int m_nEnvmapMaskFrame;
  39. int m_nEnvmapMaskTransform;
  40. int m_nEnvmapTint;
  41. int m_nBumpmap;
  42. int m_nBumpFrame;
  43. int m_nBumpmap2;
  44. int m_nBumpFrame2;
  45. int m_nBumpMask;
  46. int m_nBumpmap3;
  47. int m_nBumpFrame3;
  48. int m_nBumpTransform;
  49. int m_nEnvmapContrast;
  50. int m_nEnvmapSaturation;
  51. int m_nAlphaTestReference;
  52. int m_nFlashlightTexture;
  53. int m_nFlashlightTextureFrame;
  54. int m_nSelfIllumEnvMapMask_Alpha;
  55. };
  56. void InitParamsVertexLitGeneric_DX95( CBaseVSShader *pShader, IMaterialVar** params, const char *pMaterialName, bool bVertexLitGeneric, VertexLitGeneric_DX95_Vars_t &info );
  57. void InitVertexLitGeneric_DX95( CBaseVSShader *pShader, IMaterialVar** params, bool bVertexLitGeneric, VertexLitGeneric_DX95_Vars_t &info );
  58. void DrawVertexLitGeneric_DX95( CBaseVSShader *pShader, IMaterialVar** params,
  59. IShaderDynamicAPI *pShaderAPI, IShaderShadow* pShaderShadow, bool bVertexLitGeneric, VertexLitGeneric_DX95_Vars_t &info );
  60. #endif // VERTEXLITGENERIC_DX95_HELPER_H