|
|
|
@ -154,7 +154,6 @@ render_cb_pre(RenderState* rs) |
|
|
|
Entity* ent = &rg->entities[0]; |
|
|
|
Entity* ent = &rg->entities[0]; |
|
|
|
setEntityPosition(ent, glm::vec3(lb->pl_positions[0])); |
|
|
|
setEntityPosition(ent, glm::vec3(lb->pl_positions[0])); |
|
|
|
|
|
|
|
|
|
|
|
// FIXME: we need an interface function to update lights
|
|
|
|
|
|
|
|
GLBuffer* lights_ubo = getUBOByName(rs->gl_ctx, "lights"); |
|
|
|
GLBuffer* lights_ubo = getUBOByName(rs->gl_ctx, "lights"); |
|
|
|
assert(lights_ubo); |
|
|
|
assert(lights_ubo); |
|
|
|
updateGLBuffer(lights_ubo, lb->buffer); |
|
|
|
updateGLBuffer(lights_ubo, lb->buffer); |
|
|
|
|