Subpixel rendering (#186)
Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/186 Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com> Co-authored-by: ohyzha <oleksii.hyzha.ext@madvoxel.com> Co-committed-by: ohyzha <oleksii.hyzha.ext@madvoxel.com>
This commit is contained in:
@@ -142,7 +142,7 @@ namespace OpenVulkano::Scene
|
||||
|
||||
int idx = 0;
|
||||
m_atlasData = std::make_shared<FontAtlas>(Math::Vector2ui{ width, height }, fontGeometry.getMetrics().lineHeight,
|
||||
channelsCount == 1 ? FontAtlasType::SDF : FontAtlasType::MSDF);
|
||||
channelsCount == 1 ? FontAtlasType::SDF : FontAtlasType::MSDF, m_channelsCount == 1 ? DataFormat::R8_UNORM : DataFormat::R8G8B8A8_UNORM);
|
||||
|
||||
if constexpr (Channels == 3)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user