Text rendering
This commit is contained in:
@@ -12,8 +12,8 @@ struct FontAtlasBuildConfig
|
||||
{
|
||||
std::filesystem::path repoRoot;
|
||||
std::filesystem::path cacheRoot;
|
||||
double sizePixelsPerEm = 64.0;
|
||||
double pixelRange = 4.0;
|
||||
double sizePixelsPerEm = 128.0;
|
||||
double pixelRange = 8.0;
|
||||
std::string atlasType = "mtsdf";
|
||||
};
|
||||
|
||||
|
||||
@@ -15,6 +15,12 @@ struct RuntimeShaderPassArtifact
|
||||
std::string outputName;
|
||||
};
|
||||
|
||||
struct RuntimeTextTextureMetrics
|
||||
{
|
||||
float activeWidthScale = 1.0f;
|
||||
float aspect = 1.0f;
|
||||
};
|
||||
|
||||
struct RuntimeShaderArtifact
|
||||
{
|
||||
std::string layerId;
|
||||
@@ -25,6 +31,6 @@ struct RuntimeShaderArtifact
|
||||
std::string message;
|
||||
std::vector<ShaderParameterDefinition> parameterDefinitions;
|
||||
std::map<std::string, ShaderParameterValue> parameterValues;
|
||||
std::map<std::string, float> textTextureWidthScales;
|
||||
std::map<std::string, RuntimeTextTextureMetrics> textTextureMetrics;
|
||||
std::vector<RenderCadenceCompositor::FontAtlasBuildOutput> fontAtlases;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user