--- a/src/text.c Fri Mar 15 00:06:59 2024 +0100 +++ b/src/text.c Thu Mar 21 20:24:31 2024 +0100 @@ -39,7 +39,7 @@ // Upload model matrix glUniformMatrix4fv(ASC_SHADER_FONT.base.model, 1, - GL_FALSE, node->base.transform); + GL_FALSE, node->base.final_transform); // Upload surface glActiveTexture(GL_TEXTURE0); @@ -51,8 +51,8 @@ } static void asc_text_update_transform(AscText *node) { - asc_transform_scale(node->base.transform, (float) node->dimension.width, (float) node->dimension.height, 0); - asc_transform_translate2i(node->base.transform, node->position); + asc_transform_scale2i(node->base.local_transform, node->dimension); + asc_transform_translate2i(node->base.world_transform, node->position); } static void asc_text_update(AscText *node) {