]> git.localhorst.tv Git - blank.git/blobdiff - src/world/World.hpp
new turn style
[blank.git] / src / world / World.hpp
index e29474e99f47af5e164943a4965fd896cbc2ee17..273bfa63abc3809a507f77889015f044515b254c 100644 (file)
@@ -101,6 +101,7 @@ public:
        void Update(Entity &, float dt);
 
        void Render(Viewport &);
+       void RenderDebug(Viewport &);
 
 private:
        using EntityHandle = std::list<Entity>::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;