commit 1750895fb554f928f78965d80a5cda72d71c1809 parent f58f16bf6f51b63a8f84ebf2ddf848ae7f11c622 Author: Michael Savage <mikejsavage@gmail.com> Date: Thu Nov 3 22:17:20 +0200 Use renderer_new_shader Diffstat:
mod_btt.cc | | | 5 | ++--- |
diff --git a/mod_btt.cc b/mod_btt.cc @@ -1,5 +1,4 @@ #include "glad.h" -#include "glsl.h" #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> @@ -130,14 +129,14 @@ extern "C" GAME_INIT( game_init ) { game->test_sun = 0.3f; - game->test_shader = compile_shader( vert_src, frag_src, "screen_colour" ); + game->test_shader = renderer_new_shader( vert_src, frag_src ); game->test_un_VP = glGetUniformLocation( game->test_shader, "vp" ); game->test_un_sun = glGetUniformLocation( game->test_shader, "sun" ); game->test_un_normals = glGetUniformLocation( game->test_shader, "normals" ); game->test_un_horizons = glGetUniformLocation( game->test_shader, "horizons" ); game->test_un_dimensions = glGetUniformLocation( game->test_shader, "dimensions" ); - game->test_outline_shader = compile_shader( vert_outline_src, frag_outline_src, "screen_colour" ); + game->test_outline_shader = renderer_new_shader( vert_outline_src, frag_outline_src ); game->test_outline_at_position = glGetAttribLocation( game->test_outline_shader, "position" ); game->test_outline_at_colour = glGetAttribLocation( game->test_outline_shader, "colour" ); game->test_outline_un_vp = glGetUniformLocation( game->test_outline_shader, "vp" );