Text Rendering WIP

This commit is contained in:
Brandon Mak 2022-11-14 19:31:26 +08:00
parent 2a05d821d5
commit 4eb5fa64e0
6 changed files with 8 additions and 2 deletions

View File

@ -55,7 +55,7 @@ vec2 CreateQuad(in uint vertexID)
void main()
{
// write EID data to FS
Out2.eid = testPushConstats.eid;
Out2.eid = testPushConstant.eid;
// local variable for font index
uint fontIndex = glyphIndex;

Binary file not shown.

View File

@ -349,7 +349,13 @@ namespace SHADE
auto const ext{ path.extension().string() };
if (ext == GLSL_EXTENSION.data())
{
newPath = SHShaderSourceCompiler::LoadAndCompileShader(path).value();
auto value { SHShaderSourceCompiler::LoadAndCompileShader(path) };
if (!value.has_value())
{
SHLOG_ERROR("Shader compile failed: {}", path.string());
return;
}
newPath = value.value();
}
else if (ext == GLTF_EXTENSION.data() || ext == FBX_EXTENSION.data())
{