X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FWorld.hpp;h=273bfa63abc3809a507f77889015f044515b254c;hb=0d580658b896dfec07466c31ae4847455724ee95;hp=e29474e99f47af5e164943a4965fd896cbc2ee17;hpb=170c0ff60b9679c954a9e74d5300c9929899b2bd;p=blank.git diff --git a/src/world/World.hpp b/src/world/World.hpp index e29474e..273bfa6 100644 --- a/src/world/World.hpp +++ b/src/world/World.hpp @@ -101,6 +101,7 @@ public: void Update(Entity &, float dt); void Render(Viewport &); + void RenderDebug(Viewport &); private: using EntityHandle = std::list::iterator; @@ -129,6 +130,14 @@ private: const EntityState & ); + /// calculate light direction and intensity at entity's location + void GetLight( + const Entity &entity, + glm::vec3 &direction, + glm::vec3 &color, + glm::vec3 &ambient + ); + private: Config config;