medfall

A super great game engine
Log | Files | Refs

commit 6e861e0f9e02c341a815ee2e42283c9a94a113e8
parent c003561264a47b3bb0dc256b92c6025568f3013a
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat, 25 Nov 2017 12:56:47 +0200

Add debug UBO

Diffstat:
renderer.cc | 2+-
renderer.h | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/renderer.cc b/renderer.cc @@ -708,7 +708,7 @@ Shader renderer_new_shader( ShaderConfig config ) { return INVALID_SHADER; } - const char * ubo_names[] = { "view", "model", "light_view", "window", "sun", "sky", "clipmap", "clipmap_skirt" }; + const char * ubo_names[] = { "debug", "view", "model", "light_view", "window", "sun", "sky", "clipmap", "clipmap_skirt" }; STATIC_ASSERT( ARRAY_COUNT( ubo_names ) == UNIFORMS_COUNT ); for( GLuint i = 0; i < ARRAY_COUNT( ubo_names ); i++ ) { GLuint idx = glGetUniformBlockIndex( program, ubo_names[ i ] ); diff --git a/renderer.h b/renderer.h @@ -16,6 +16,7 @@ typedef u32 TextureBufferObject; typedef u32 FramebufferObject; enum UniformSlots { + UNIFORMS_DEBUG, UNIFORMS_VIEW, UNIFORMS_MODEL, UNIFORMS_LIGHT_VIEW,