summaryrefslogtreecommitdiffhomepage
path: root/shaders/lightmap.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-06-12 04:02:29 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-06-12 04:02:29 +0200
commit060ea55805ff629e0971ef8a37592228faf2a17f (patch)
tree6bdbab435cdfbb200bfe93f5c22b7075713b3165 /shaders/lightmap.hpp
parent6143042c67f5e7adb0e64a81ebaa9c89e398a541 (diff)
lightmap sort of works now
Diffstat (limited to 'shaders/lightmap.hpp')
-rw-r--r--shaders/lightmap.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/shaders/lightmap.hpp b/shaders/lightmap.hpp
index 633f7ba0..655534ff 100644
--- a/shaders/lightmap.hpp
+++ b/shaders/lightmap.hpp
@@ -43,7 +43,11 @@ struct lightmap_shader final : GL::AbstractShaderProgram
};
void begin(Vector2i neighbor_offset, const light_s& light);
- void add_chunk(Vector2i neighbor_offset, const chunk& c);
+ void add_chunk(Vector2i neighbor_offset, chunk& c);
+ void add_entities(Vector2i neighbor_offset, chunk& c);
+ void add_geometry(Vector2i neighbor_offset, chunk& c);
+ void add_rect(Vector2i neighbor_offset, Vector2 min, Vector2 max);
+ void add_rect(Vector2i neighbor_offset, Pair<Vector2, Vector2> minmax);
void end();
GL::Texture2D& texture();