medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 9568c4f0a9254731f177696ae7a5200ea80881ba
parent ce0d21eec3e45be8f658296daa7e5bbafc1871e0
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri Nov  4 19:43:58 +0200

Create the checkerboard shader properly

Diffstat:
bsp.cc | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/bsp.cc b/bsp.cc @@ -334,7 +334,15 @@ extern "C" GAME_INIT( game_init ) { game->angles = glm::radians( glm::vec3( -90, 135, 0 ) ); game->test_shader = renderer_new_shader( vert_src, frag_src ); - texture_shader = renderer_new_shader( textured_vert_src, textured_frag_src ); + + { + ShaderConfig config = { }; + config.vertex_src = textured_vert_src; + config.fragment_src = textured_frag_src; + config.texture_uniform_names[ 0 ] = "tex"; + + texture_shader = renderer_new_shader( config ); + } bspr_init( &game->bspr, &arena, &game->bsp );