diff --git a/examples/ExampleSources/msdf_atlas_packed.png b/examples/ExampleSources/msdf_atlas_packed.png index abfafdf..ac883d9 100644 Binary files a/examples/ExampleSources/msdf_atlas_packed.png and b/examples/ExampleSources/msdf_atlas_packed.png differ diff --git a/examples/ExampleSources/sdf_atlas_packed b/examples/ExampleSources/sdf_atlas_packed deleted file mode 100644 index a1d4b1d..0000000 Binary files a/examples/ExampleSources/sdf_atlas_packed and /dev/null differ diff --git a/examples/ExampleSources/sdf_atlas_packed.png b/examples/ExampleSources/sdf_atlas_packed.png new file mode 100644 index 0000000..719b7b0 Binary files /dev/null and b/examples/ExampleSources/sdf_atlas_packed.png differ diff --git a/openVulkanoCpp/Scene/FontAtlasGenerator.cpp b/openVulkanoCpp/Scene/FontAtlasGenerator.cpp index 1d0cf5d..dc751b0 100644 --- a/openVulkanoCpp/Scene/FontAtlasGenerator.cpp +++ b/openVulkanoCpp/Scene/FontAtlasGenerator.cpp @@ -268,25 +268,25 @@ namespace OpenVulkano::Scene info.xyz[0].x = bearingX; info.xyz[0].y = h - bearingY; - info.xyz[0].z = 1; + info.xyz[0].z = 0; info.uv[0].x = l / m_atlasTex.resolution.x; info.uv[0].y = b / m_atlasTex.resolution.y; info.xyz[1].x = bearingX + w; info.xyz[1].y = h - bearingY; - info.xyz[1].z = 1; + info.xyz[1].z = 0; info.uv[1].x = r / m_atlasTex.resolution.x; info.uv[1].y = b / m_atlasTex.resolution.y; info.xyz[2].x = bearingX + w; info.xyz[2].y = bearingY; //h - bearingY + h; - info.xyz[2].z = 1; + info.xyz[2].z = 0; info.uv[2].x = r / m_atlasTex.resolution.x; info.uv[2].y = t / m_atlasTex.resolution.y; info.xyz[3].x = bearingX; info.xyz[3].y = bearingY; - info.xyz[3].z = 1; + info.xyz[3].z = 0; info.uv[3].x = l / m_atlasTex.resolution.x; info.uv[3].y = t / m_atlasTex.resolution.y;