Commit 0647d42e authored by Ilya Prokhorov's avatar Ilya Prokhorov

FSGL bones disable

parent 68d83f93
......@@ -639,6 +639,12 @@ void OGLNewAgeRenderer::renderObject(shared_ptr<FSGLObject> object)
GLint bonesMatricesUniform = glGetUniformLocation(shader_program, "bonesMatrices");
auto animationTransformationMatrices = mesh->animationTransformationMatrices;
#if FSGL_BONES_ENABLED
int kMaxBones = 64;
#else
int kMaxBones = 1;
#endif
glm::mat4 glmMatrices[64];
auto unitMatrix = make_shared<FSGLMatrix>();
......
......@@ -6,7 +6,12 @@ static const GLchar* vertexShaderSource =
"uniform mat4 projectionMatrix;\n"
"uniform mat4 viewMatrix;\n"
"uniform mat4 modelMatrix;\n"
#if FSGL_BONES_ENABLED
"const int kMaxBones = 64;\n"
#else
"const int kMaxBones = 1;\n"
#endif
"uniform mat4 bonesMatrices[kMaxBones];\n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment