From 5a6aaf633ce217f828d981cd8c55951ada67e2df Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Sun, 27 Jun 2021 21:31:00 +0500 Subject: Moved block face model matrix transformation to CPU --- src/RendererSection.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/RendererSection.hpp') diff --git a/src/RendererSection.hpp b/src/RendererSection.hpp index 29b5db1..dd01c49 100644 --- a/src/RendererSection.hpp +++ b/src/RendererSection.hpp @@ -10,7 +10,7 @@ class RendererSectionData; class RendererSection { enum Vbos { - MODELS = 0, + POSITIONS = 0, TEXTURES, LAYERS, FRAMES, @@ -21,7 +21,7 @@ class RendererSection { GLuint Vao = { 0 }; GLuint Vbo[VBOCOUNT] = { 0 }; - static GLuint VboVertices, VboUvs; + static GLuint VboUvs; size_t hash; Vector sectionPos; -- cgit v1.2.3 From 04ad0ef50d7eb362fd13272fd1d610740b3ede5e Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Mon, 28 Jun 2021 20:20:49 +0500 Subject: Embed UV to vertex data --- src/RendererSection.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/RendererSection.hpp') diff --git a/src/RendererSection.hpp b/src/RendererSection.hpp index dd01c49..9bb55e3 100644 --- a/src/RendererSection.hpp +++ b/src/RendererSection.hpp @@ -11,9 +11,9 @@ class RendererSectionData; class RendererSection { enum Vbos { POSITIONS = 0, - TEXTURES, - LAYERS, - FRAMES, + UVS, + UVLAYERS, + ANIMATIONS, COLORS, LIGHTS, VBOCOUNT, @@ -21,8 +21,6 @@ class RendererSection { GLuint Vao = { 0 }; GLuint Vbo[VBOCOUNT] = { 0 }; - static GLuint VboUvs; - size_t hash; Vector sectionPos; -- cgit v1.2.3 From 7ff7b88cf66131a559ea0ee931bddce4785507a7 Mon Sep 17 00:00:00 2001 From: LaG1924 Date: Mon, 28 Jun 2021 20:55:59 +0500 Subject: Implemented vertex data iterleaving --- src/RendererSection.hpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/RendererSection.hpp') diff --git a/src/RendererSection.hpp b/src/RendererSection.hpp index 9bb55e3..3ea1fec 100644 --- a/src/RendererSection.hpp +++ b/src/RendererSection.hpp @@ -9,17 +9,8 @@ class RenderState; class RendererSectionData; class RendererSection { - enum Vbos { - POSITIONS = 0, - UVS, - UVLAYERS, - ANIMATIONS, - COLORS, - LIGHTS, - VBOCOUNT, - }; GLuint Vao = { 0 }; - GLuint Vbo[VBOCOUNT] = { 0 }; + GLuint Vbo = { 0 }; size_t hash; Vector sectionPos; -- cgit v1.2.3