DepthOfFieldPencilMap.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. namespace AZ
  10. {
  11. namespace Render
  12. {
  13. namespace PencilMap
  14. {
  15. // PencilMap 35mm Film
  16. static constexpr unsigned int TextureWidth = 128;
  17. static constexpr unsigned int TextureHeight = 64;
  18. static constexpr const char* TextureFilePath = "textures/postprocessing/depthoffield_pencilmap_35mmfilm.bmp.streamingimage";
  19. // EIS_35mm : 36.0mm x 24.0mm
  20. // sqrt(36.0 * 36.0 + 24.0 * 24.0) = 43.267mm = 0.043267m
  21. static constexpr float EIS_35mm_DiagonalLength = 0.043267f;
  22. // focusPointU(61) : Pixel number of focus point.
  23. // width(128) : The width of pencil map.
  24. // PencilMapFocusPointTexcoordU = (focusPointU + 1) / width.
  25. static constexpr float PencilMapFocusPointTexcoordU = 0.484375f;
  26. } // namespace PencilMap
  27. } // namespace Render
  28. } // namespace AZ