summaryrefslogtreecommitdiffhomepage
path: root/shaders/lightmap.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-08-23 03:37:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-08-23 03:37:35 +0200
commit95115d88ffeadd734048129525c14632f089aaa5 (patch)
tree9e662dd7bc209365b140631d57f3ad4acf343e14 /shaders/lightmap.hpp
parente9f5c273128e553a6ebc9d15f3a9a820faf2bbb4 (diff)
wip
Diffstat (limited to 'shaders/lightmap.hpp')
-rw-r--r--shaders/lightmap.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/shaders/lightmap.hpp b/shaders/lightmap.hpp
index 8e9b77e2..b885501a 100644
--- a/shaders/lightmap.hpp
+++ b/shaders/lightmap.hpp
@@ -67,7 +67,7 @@ const blend_shadow = {
void add_rect(Vector2 neighbor_offset, Pair<Vector2, Vector2> minmax);
//void finish_light_only();
//void finish_and_blend_light();
- void add_light(Vector2 neighbor_offset, const light_s& light);
+ void add_light(const light_s& light);
void bind();
GL::Texture2D& scratch_texture();
@@ -75,7 +75,7 @@ const blend_shadow = {
static constexpr auto max_chunks = Vector2s(8, 8);
- using Position = GL::Attribute<0, Vector2>;
+ using Position = GL::Attribute<0, Vector3>;
private:
enum : Int {
@@ -117,7 +117,6 @@ private:
GL::Mesh occlusion_mesh{NoCreate};
static constexpr auto starting_capacity = 1; // todo
- std::array<Vector3, 4> light_vertexes;
GL::Buffer light_vertex_buf{NoCreate};
GL::Mesh light_mesh{NoCreate};