diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-26 06:46:24 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-26 06:46:24 +0200 |
commit | b9d4466c136b4f6f8ca43f43331ee6a75817cfce (patch) | |
tree | b86199dd7cd40663cc97f58bde51dc9fc295e4d0 /shaders | |
parent | cb58df155c53fc19ed64b6b69a7ab1c44f049f3b (diff) |
remove duplication
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/lightmap.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/shaders/lightmap.cpp b/shaders/lightmap.cpp index 43f71243..e12b091b 100644 --- a/shaders/lightmap.cpp +++ b/shaders/lightmap.cpp @@ -212,11 +212,7 @@ lightmap_shader::lightmap_shader() std::array<UnsignedShort, 6> lightmap_shader::quad_indexes(size_t N) { - using u16 = UnsignedShort; - return { /* 3--1 1 */ - (u16)(0+N*4), (u16)(1+N*4), (u16)(2+N*4), /* | / /| */ - (u16)(2+N*4), (u16)(1+N*4), (u16)(3+N*4), /* |/ / | */ - }; /* 2 2--0 */ + return tile_atlas::indices(N); } void lightmap_shader::add_light(Vector2 neighbor_offset, const light_s& light) |