Skip to content

Commit

Permalink
Add the new shader params added in PR #61
Browse files Browse the repository at this point in the history
Ref commit b111dad
  • Loading branch information
nsg committed Jul 30, 2015
1 parent 2a49d9a commit daf38ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/inventory.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ void render_inventory_block(Attrib *attrib, int w, float s, float x, float y, in
glUniform3f(attrib->camera, 0, 0, 5);
glUniform1i(attrib->sampler, 0); // GL_TEXTURE0
glUniform1f(attrib->timer, PI*2);
glUniform4f(attrib->extra5,0.0, 0.0, 0.0, 0.0);
float identity[16];
mat_identity(identity);
glUniformMatrix4fv(attrib->extra6, 1, GL_FALSE, identity);
float matrix[16];
GLuint buffer;
set_matrix_item_offs(matrix, g->width, g->height, s, x, y, sel);
Expand Down

0 comments on commit daf38ee

Please sign in to comment.