Browse Source

Set BGFX_CONFIG_MAX_BONES to 1.

Бранимир Караџић 15 hours ago
parent
commit
71601c6be3

+ 1 - 0
examples/common/debugdraw/vs_debugdraw_fill.sc

@@ -5,6 +5,7 @@ $input a_position, a_indices
  * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
  */
 
+#define BGFX_CONFIG_MAX_BONES 2
 #include <bgfx_shader.sh>
 
 void main()

+ 1 - 0
examples/common/debugdraw/vs_debugdraw_fill_lit.sc

@@ -6,6 +6,7 @@ $output v_view, v_world
  * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE
  */
 
+#define BGFX_CONFIG_MAX_BONES 2
 #include <bgfx_shader.sh>
 
 void main()

+ 1 - 1
src/bgfx_shader.sh

@@ -7,7 +7,7 @@
 #define BGFX_SHADER_H_HEADER_GUARD
 
 #if !defined(BGFX_CONFIG_MAX_BONES)
-#	define BGFX_CONFIG_MAX_BONES 32
+#	define BGFX_CONFIG_MAX_BONES 1
 #endif // !defined(BGFX_CONFIG_MAX_BONES)
 
 #ifndef __cplusplus