31 #include "ascension/shader.h" |
31 #include "ascension/shader.h" |
32 |
32 |
33 #include <GL/glew.h> |
33 #include <GL/glew.h> |
34 |
34 |
35 static void asc_text_draw(AscText const *node) { |
35 static void asc_text_draw(AscText const *node) { |
36 if (node->color.alpha == 0 || node->hidden) { |
|
37 return; |
|
38 } |
|
39 |
|
40 // Obtain shader |
36 // Obtain shader |
41 AscShaderSprite *shader = &asc_context.active_window->glctx.shader.sprite; |
37 AscShaderSprite *shader = &asc_context.active_window->glctx.shader.sprite; |
42 |
38 |
43 // Upload model matrix |
39 // Upload model matrix |
44 glUniformMatrix4fv(shader->base.model, 1, |
40 glUniformMatrix4fv(shader->base.model, 1, |