diff --git a/src/GPUFontAtlasLayerCombo.h b/src/GPUFontAtlasLayerCombo.h index 5d52583..1231128 100644 --- a/src/GPUFontAtlasLayerCombo.h +++ b/src/GPUFontAtlasLayerCombo.h @@ -20,6 +20,9 @@ class GPUFontAtlasLayerCombo : public AtlasLayerCombo { glm::mat4 getProjectionMatrix(float aspect){ return glm::perspective( /* fovy = */ glm::radians(60.0f), aspect, 0.002f, 12.000f); } + glm::mat4 getOrthoProjectionMatrix(float w, float h){ + return glm::ortho(-(w * 0.5f), (w * 0.5f), -(h * 0.5f), (h * 0.5f), 0.002f, 12.000f); + } glm::mat4 getViewMatrix(){ auto translation = glm::translate(position);