GraphicsDefs.cpp 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //
  2. // Copyright (c) 2008-2015 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 Atomic
  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 ATOMIC_API const StringHash VSP_AMBIENTSTARTCOLOR("AmbientStartColor");
  31. extern ATOMIC_API const StringHash VSP_AMBIENTENDCOLOR("AmbientEndColor");
  32. extern ATOMIC_API const StringHash VSP_BILLBOARDROT("BillboardRot");
  33. extern ATOMIC_API const StringHash VSP_CAMERAPOS("CameraPos");
  34. extern ATOMIC_API const StringHash VSP_CAMERAROT("CameraRot");
  35. extern ATOMIC_API const StringHash VSP_CLIPPLANE("ClipPlane");
  36. extern ATOMIC_API const StringHash VSP_NEARCLIP("NearClip");
  37. extern ATOMIC_API const StringHash VSP_FARCLIP("FarClip");
  38. extern ATOMIC_API const StringHash VSP_DEPTHMODE("DepthMode");
  39. extern ATOMIC_API const StringHash VSP_DELTATIME("DeltaTime");
  40. extern ATOMIC_API const StringHash VSP_ELAPSEDTIME("ElapsedTime");
  41. extern ATOMIC_API const StringHash VSP_FRUSTUMSIZE("FrustumSize");
  42. extern ATOMIC_API const StringHash VSP_GBUFFEROFFSETS("GBufferOffsets");
  43. extern ATOMIC_API const StringHash VSP_LIGHTDIR("LightDir");
  44. extern ATOMIC_API const StringHash VSP_LIGHTPOS("LightPos");
  45. extern ATOMIC_API const StringHash VSP_MODEL("Model");
  46. extern ATOMIC_API const StringHash VSP_VIEWPROJ("ViewProj");
  47. extern ATOMIC_API const StringHash VSP_UOFFSET("UOffset");
  48. extern ATOMIC_API const StringHash VSP_VOFFSET("VOffset");
  49. extern ATOMIC_API const StringHash VSP_ZONE("Zone");
  50. extern ATOMIC_API const StringHash VSP_LIGHTMATRICES("LightMatrices");
  51. extern ATOMIC_API const StringHash VSP_SKINMATRICES("SkinMatrices");
  52. extern ATOMIC_API const StringHash VSP_VERTEXLIGHTS("VertexLights");
  53. extern ATOMIC_API const StringHash PSP_AMBIENTCOLOR("AmbientColor");
  54. extern ATOMIC_API const StringHash PSP_CAMERAPOS("CameraPosPS");
  55. extern ATOMIC_API const StringHash PSP_DELTATIME("DeltaTimePS");
  56. extern ATOMIC_API const StringHash PSP_DEPTHRECONSTRUCT("DepthReconstruct");
  57. extern ATOMIC_API const StringHash PSP_ELAPSEDTIME("ElapsedTimePS");
  58. extern ATOMIC_API const StringHash PSP_FOGCOLOR("FogColor");
  59. extern ATOMIC_API const StringHash PSP_FOGPARAMS("FogParams");
  60. extern ATOMIC_API const StringHash PSP_GBUFFERINVSIZE("GBufferInvSize");
  61. extern ATOMIC_API const StringHash PSP_LIGHTCOLOR("LightColor");
  62. extern ATOMIC_API const StringHash PSP_LIGHTDIR("LightDirPS");
  63. extern ATOMIC_API const StringHash PSP_LIGHTPOS("LightPosPS");
  64. extern ATOMIC_API const StringHash PSP_MATDIFFCOLOR("MatDiffColor");
  65. extern ATOMIC_API const StringHash PSP_MATEMISSIVECOLOR("MatEmissiveColor");
  66. extern ATOMIC_API const StringHash PSP_MATENVMAPCOLOR("MatEnvMapColor");
  67. extern ATOMIC_API const StringHash PSP_MATSPECCOLOR("MatSpecColor");
  68. extern ATOMIC_API const StringHash PSP_NEARCLIP("NearClipPS");
  69. extern ATOMIC_API const StringHash PSP_FARCLIP("FarClipPS");
  70. extern ATOMIC_API const StringHash PSP_SHADOWCUBEADJUST("ShadowCubeAdjust");
  71. extern ATOMIC_API const StringHash PSP_SHADOWDEPTHFADE("ShadowDepthFade");
  72. extern ATOMIC_API const StringHash PSP_SHADOWINTENSITY("ShadowIntensity");
  73. extern ATOMIC_API const StringHash PSP_SHADOWMAPINVSIZE("ShadowMapInvSize");
  74. extern ATOMIC_API const StringHash PSP_SHADOWSPLITS("ShadowSplits");
  75. extern ATOMIC_API const StringHash PSP_LIGHTMATRICES("LightMatricesPS");
  76. extern ATOMIC_API const Vector3 DOT_SCALE(1 / 3.0f, 1 / 3.0f, 1 / 3.0f);
  77. }