X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fworld%2FWorld.hpp;h=8754d3992e800f518dd9b5db021a8c997a80ec9b;hb=4727825186798902f68df5b99a6a32f0ef618454;hp=7ee5f4306a228260f172d594c8776056020fcb6d;hpb=2da9efc1037fba0461303327151318b8edf4dfc7;p=blank.git diff --git a/src/world/World.hpp b/src/world/World.hpp index 7ee5f43..8754d39 100644 --- a/src/world/World.hpp +++ b/src/world/World.hpp @@ -49,7 +49,7 @@ public: bool Intersection( const Ray &, const glm::mat4 &M, - const Chunk::Pos &reference, + const ExactLocation::Coarse &reference, WorldCollision &); /// check if this ray hits an entity @@ -130,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;