GraphicsDefs.cpp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. //
  2. // Copyright (c) 2008-2016 the Urho3D project.
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to deal
  6. // in the Software without restriction, including without limitation the rights
  7. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. // copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. // THE SOFTWARE.
  21. //
  22. #include "../Precompiled.h"
  23. #include "../Graphics/GraphicsDefs.h"
  24. #include "../Math/Vector3.h"
  25. #include "../DebugNew.h"
  26. namespace Urho3D
  27. {
  28. // The extern keyword is required when building Urho3D.dll for Windows platform
  29. // The keyword is not required for other platforms but it does no harm, aside from warning from static analyzer
  30. extern URHO3D_API const StringHash VSP_AMBIENTSTARTCOLOR("AmbientStartColor");
  31. extern URHO3D_API const StringHash VSP_AMBIENTENDCOLOR("AmbientEndColor");
  32. extern URHO3D_API const StringHash VSP_BILLBOARDROT("BillboardRot");
  33. extern URHO3D_API const StringHash VSP_CAMERAPOS("CameraPos");
  34. extern URHO3D_API const StringHash VSP_CAMERAROT("CameraRot");
  35. extern URHO3D_API const StringHash VSP_CLIPPLANE("ClipPlane");
  36. extern URHO3D_API const StringHash VSP_NEARCLIP("NearClip");
  37. extern URHO3D_API const StringHash VSP_FARCLIP("FarClip");
  38. extern URHO3D_API const StringHash VSP_DEPTHMODE("DepthMode");
  39. extern URHO3D_API const StringHash VSP_DELTATIME("DeltaTime");
  40. extern URHO3D_API const StringHash VSP_ELAPSEDTIME("ElapsedTime");
  41. extern URHO3D_API const StringHash VSP_FRUSTUMSIZE("FrustumSize");
  42. extern URHO3D_API const StringHash VSP_GBUFFEROFFSETS("GBufferOffsets");
  43. extern URHO3D_API const StringHash VSP_LIGHTDIR("LightDir");
  44. extern URHO3D_API const StringHash VSP_LIGHTPOS("LightPos");
  45. extern URHO3D_API const StringHash VSP_MODEL("Model");
  46. extern URHO3D_API const StringHash VSP_VIEW("View");
  47. extern URHO3D_API const StringHash VSP_VIEWINV("ViewInv");
  48. extern URHO3D_API const StringHash VSP_VIEWPROJ("ViewProj");
  49. extern URHO3D_API const StringHash VSP_UOFFSET("UOffset");
  50. extern URHO3D_API const StringHash VSP_VOFFSET("VOffset");
  51. extern URHO3D_API const StringHash VSP_ZONE("Zone");
  52. extern URHO3D_API const StringHash VSP_LIGHTMATRICES("LightMatrices");
  53. extern URHO3D_API const StringHash VSP_SKINMATRICES("SkinMatrices");
  54. extern URHO3D_API const StringHash VSP_VERTEXLIGHTS("VertexLights");
  55. extern URHO3D_API const StringHash PSP_AMBIENTCOLOR("AmbientColor");
  56. extern URHO3D_API const StringHash PSP_CAMERAPOS("CameraPosPS");
  57. extern URHO3D_API const StringHash PSP_DELTATIME("DeltaTimePS");
  58. extern URHO3D_API const StringHash PSP_DEPTHRECONSTRUCT("DepthReconstruct");
  59. extern URHO3D_API const StringHash PSP_ELAPSEDTIME("ElapsedTimePS");
  60. extern URHO3D_API const StringHash PSP_FOGCOLOR("FogColor");
  61. extern URHO3D_API const StringHash PSP_FOGPARAMS("FogParams");
  62. extern URHO3D_API const StringHash PSP_GBUFFERINVSIZE("GBufferInvSize");
  63. extern URHO3D_API const StringHash PSP_LIGHTCOLOR("LightColor");
  64. extern URHO3D_API const StringHash PSP_LIGHTDIR("LightDirPS");
  65. extern URHO3D_API const StringHash PSP_LIGHTPOS("LightPosPS");
  66. extern URHO3D_API const StringHash PSP_MATDIFFCOLOR("MatDiffColor");
  67. extern URHO3D_API const StringHash PSP_MATEMISSIVECOLOR("MatEmissiveColor");
  68. extern URHO3D_API const StringHash PSP_MATENVMAPCOLOR("MatEnvMapColor");
  69. extern URHO3D_API const StringHash PSP_MATSPECCOLOR("MatSpecColor");
  70. extern URHO3D_API const StringHash PSP_NEARCLIP("NearClipPS");
  71. extern URHO3D_API const StringHash PSP_FARCLIP("FarClipPS");
  72. extern URHO3D_API const StringHash PSP_SHADOWCUBEADJUST("ShadowCubeAdjust");
  73. extern URHO3D_API const StringHash PSP_SHADOWDEPTHFADE("ShadowDepthFade");
  74. extern URHO3D_API const StringHash PSP_SHADOWINTENSITY("ShadowIntensity");
  75. extern URHO3D_API const StringHash PSP_SHADOWMAPINVSIZE("ShadowMapInvSize");
  76. extern URHO3D_API const StringHash PSP_SHADOWSPLITS("ShadowSplits");
  77. extern URHO3D_API const StringHash PSP_LIGHTMATRICES("LightMatricesPS");
  78. extern URHO3D_API const StringHash PSP_VSMSHADOWPARAMS("VSMShadowParams");
  79. extern URHO3D_API const StringHash PSP_ROUGHNESS("RoughnessPS");
  80. extern URHO3D_API const StringHash PSP_METALLIC("MetallicPS");
  81. extern URHO3D_API const Vector3 DOT_SCALE(1 / 3.0f, 1 / 3.0f, 1 / 3.0f);
  82. }