diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-23 03:37:35 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-23 03:37:35 +0200 |
commit | 95115d88ffeadd734048129525c14632f089aaa5 (patch) | |
tree | 9e662dd7bc209365b140631d57f3ad4acf343e14 /shaders/lightmap.hpp | |
parent | e9f5c273128e553a6ebc9d15f3a9a820faf2bbb4 (diff) |
wip
Diffstat (limited to 'shaders/lightmap.hpp')
-rw-r--r-- | shaders/lightmap.hpp | 5 |
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}; |