From 3cdeebf6bc3a231c81db13f081f59a5ffcf8336c Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 20 Feb 2022 22:28:54 -0500 Subject: [PATCH] Reduce the indices of the vertex buffers in an attempt to make WebGPU happy --- engine/renderer/include/materialcompiler.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/renderer/include/materialcompiler.hpp b/engine/renderer/include/materialcompiler.hpp index 2608a8a..8b4915c 100755 --- a/engine/renderer/include/materialcompiler.hpp +++ b/engine/renderer/include/materialcompiler.hpp @@ -6,12 +6,12 @@ class Material; -constexpr int position_buffer_index = 2; -constexpr int normal_buffer_index = 3; -constexpr int texcoord_buffer_index = 4; -constexpr int tangent_buffer_index = 5; -constexpr int bitangent_buffer_index = 6; -constexpr int bone_buffer_index = 7; +constexpr int position_buffer_index = 0; +constexpr int normal_buffer_index = 1; +constexpr int texcoord_buffer_index = 2; +constexpr int tangent_buffer_index = 3; +constexpr int bitangent_buffer_index = 4; +constexpr int bone_buffer_index = 5; class MaterialCompiler { public: