From b9d4466c136b4f6f8ca43f43331ee6a75817cfce Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 26 Aug 2023 06:46:24 +0200 Subject: remove duplication --- shaders/lightmap.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'shaders') 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 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) -- cgit v1.2.3