| 123456789101112131415161718192021222324252627282930313233 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- namespace AZ
- {
- namespace Render
- {
- namespace PencilMap
- {
- // PencilMap 35mm Film
- static constexpr unsigned int TextureWidth = 128;
- static constexpr unsigned int TextureHeight = 64;
- static constexpr const char* TextureFilePath = "textures/postprocessing/depthoffield_pencilmap_35mmfilm.bmp.streamingimage";
- // EIS_35mm : 36.0mm x 24.0mm
- // sqrt(36.0 * 36.0 + 24.0 * 24.0) = 43.267mm = 0.043267m
- static constexpr float EIS_35mm_DiagonalLength = 0.043267f;
- // focusPointU(61) : Pixel number of focus point.
- // width(128) : The width of pencil map.
- // PencilMapFocusPointTexcoordU = (focusPointU + 1) / width.
- static constexpr float PencilMapFocusPointTexcoordU = 0.484375f;
- } // namespace PencilMap
- } // namespace Render
- } // namespace AZ
|