src/shader.c

changeset 40
6c438be1a1fd
parent 16
c5dde81b6fb2
child 41
df81d493716e
--- a/src/shader.c	Thu Mar 21 20:34:33 2024 +0100
+++ b/src/shader.c	Thu Mar 21 20:48:18 2024 +0100
@@ -32,7 +32,7 @@
 #include <GL/glew.h>
 #include <string.h>
 
-AscShaderFont ASC_SHADER_FONT;
+AscShaderSprite ASC_SHADER_SPRITE;
 
 
 AscShader asc_shader_compile(unsigned int type,
@@ -137,10 +137,10 @@
 }
 
 void asc_shader_initialize_predefined(void) {
-    ASC_SHADER_FONT.base = asc_shader_compile_link_discard("shader/font_vtx.glsl", "shader/font_frag.glsl");
-    ASC_SHADER_FONT.surface = glGetUniformLocation(ASC_SHADER_FONT.base.id, "surface");
+    ASC_SHADER_SPRITE.base = asc_shader_compile_link_discard("shader/sprite_vtx.glsl", "shader/sprite_frag.glsl");
+    ASC_SHADER_SPRITE.surface = glGetUniformLocation(ASC_SHADER_SPRITE.base.id, "surface");
 }
 
 void asc_shader_destroy_predefined(void) {
-    asc_shader_program_destroy(ASC_SHADER_FONT.base);
+    asc_shader_program_destroy(ASC_SHADER_SPRITE.base);
 }
\ No newline at end of file

mercurial