src/scene.c

changeset 143
4db4f00493ad
parent 139
5d655459db85
child 144
43636d6a6e25
--- a/src/scene.c	Tue Jun 10 19:17:21 2025 +0200
+++ b/src/scene.c	Tue Jun 10 19:29:07 2025 +0200
@@ -30,7 +30,7 @@
 #include "ascension/scene.h"
 #include "ascension/behavior.h"
 #include "ascension/shader.h"
-#include "ascension/2d.h"
+#include "ascension/sprite.h"
 
 #include <cx/tree.h>
 #include <cx/array_list.h>
@@ -95,6 +95,7 @@
 
     // TODO: implement interleaving by depth
     if (cxIteratorValid(iter_opaque_rect)) {
+        // TODO: add abstraction, because otherwise this will explode really fast when we start adding primitive shaders
         glDisable(GL_BLEND);
         const AscShaderProgram *shader = asc_sprite_shader_rect();
         asc_shader_use(shader, &scene->camera);

mercurial