src/scene.c

changeset 40
6c438be1a1fd
parent 39
7cf310cc47cb
child 41
df81d493716e
equal deleted inserted replaced
39:7cf310cc47cb 40:6c438be1a1fd
158 glDisable(GL_DEPTH_TEST); 158 glDisable(GL_DEPTH_TEST);
159 glEnable(GL_BLEND); 159 glEnable(GL_BLEND);
160 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 160 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
161 // TODO: see if we can really always ignore the view matrix 161 // TODO: see if we can really always ignore the view matrix
162 // TODO: compute render order for alpha blending to work correctly 162 // TODO: compute render order for alpha blending to work correctly
163 glUseProgram(ASC_SHADER_FONT.base.id); 163 glUseProgram(ASC_SHADER_SPRITE.base.id);
164 glUniformMatrix4fv(ASC_SHADER_FONT.base.projection, 1, 164 glUniformMatrix4fv(ASC_SHADER_SPRITE.base.projection, 1,
165 GL_FALSE, camera->projection); 165 GL_FALSE, camera->projection);
166 asc_scene_draw_render_group(scene->rg_fonts); 166 asc_scene_draw_render_group(scene->rg_fonts);
167 } 167 }
168 } 168 }
169 169

mercurial