summaryrefslogtreecommitdiffhomepage
path: root/src/light.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/light.cpp')
-rw-r--r--src/light.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/light.cpp b/src/light.cpp
index e1dd00b9..921b0e4d 100644
--- a/src/light.cpp
+++ b/src/light.cpp
@@ -1,11 +1,14 @@
#include "light.hpp"
#include "shaders/shader.hpp"
+#include "loader/loader.hpp"
+#include "loader/vobj-info.hpp"
#include <cmath>
namespace floormat {
light_proto::light_proto()
{
+ atlas = loader.vobj("light"_s).atlas;
pass = pass_mode::pass;
type = entity_type::light;
}
@@ -30,6 +33,7 @@ float light::depth_offset() const
}
Vector2 light::ordinal_offset(Vector2b) const { return {}; }
+
entity_type light::type() const noexcept { return entity_type::light; }
bool light::update(size_t, float) { return false; }
bool light::is_virtual() const { return true; }