X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player.c;h=ee799d072e073c0d80270a8c2a8f464eb1fd9486;hb=7e7dddda61cb3ccef02dbefd06a9cbaf39a94581;hp=ef516a1a5bf9d92ec4bc6fc387c9c230e2f26d26;hpb=409edea2cf6271956137918e4e0b4f1c2addf620;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.c b/player.c index ef516a1..ee799d0 100644 --- a/player.c +++ b/player.c @@ -281,6 +281,10 @@ PLAYER_API void player__render( camera *cam, player_instance *player ) world_link_lighting_ub( world, _shader_model_character_view.id ); world_bind_position_texture( world, _shader_model_character_view.id, _uniform_model_character_view_g_world_depth, 2 ); + world_bind_light_array( world, _shader_model_character_view.id, + _uniform_model_character_view_uLightsArray, 3 ); + world_bind_light_index( world, _shader_model_character_view.id, + _uniform_model_character_view_uLightsIndex, 4 ); glUniformMatrix4x3fv( _uniform_model_character_view_uTransforms, player->playeravatar->sk.bone_count,