|
|
@ -355,6 +355,9 @@ |
|
|
|
#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEWEIGHTS 8 |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#ifndef RL_DEFAULT_SHADER_ATTRIB_LOCATION_INSTANCE_TX |
|
|
|
#define RL_DEFAULT_SHADER_ATTRIB_LOCATION_INSTANCE_TX 9 |
|
|
|
#endif |
|
|
|
|
|
|
|
//---------------------------------------------------------------------------------- |
|
|
|
// Types and Structures Definition |
|
|
@ -998,6 +1001,9 @@ RLAPI void rlLoadDrawQuad(void); // Load and draw a quad |
|
|
|
#ifndef RL_DEFAULT_SHADER_ATTRIB_NAME_BONEWEIGHTS |
|
|
|
#define RL_DEFAULT_SHADER_ATTRIB_NAME_BONEWEIGHTS "vertexBoneWeights" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_NAME_BONEWEIGHTS |
|
|
|
#endif |
|
|
|
#ifndef RL_DEFAULT_SHADER_ATTRIB_NAME_INSTANCE_TX |
|
|
|
#define RL_DEFAULT_SHADER_ATTRIB_NAME_INSTANCE_TX "instanceTransform" // Bound by default to shader location: RL_DEFAULT_SHADER_ATTRIB_NAME_INSTANCE_TX |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef RL_DEFAULT_SHADER_UNIFORM_NAME_MVP |
|
|
|
#define RL_DEFAULT_SHADER_UNIFORM_NAME_MVP "mvp" // model-view-projection matrix |
|
|
@ -4216,6 +4222,7 @@ unsigned int rlLoadShaderProgram(unsigned int vShaderId, unsigned int fShaderId) |
|
|
|
glBindAttribLocation(program, RL_DEFAULT_SHADER_ATTRIB_LOCATION_COLOR, RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR); |
|
|
|
glBindAttribLocation(program, RL_DEFAULT_SHADER_ATTRIB_LOCATION_TANGENT, RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT); |
|
|
|
glBindAttribLocation(program, RL_DEFAULT_SHADER_ATTRIB_LOCATION_TEXCOORD2, RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2); |
|
|
|
glBindAttribLocation(program, RL_DEFAULT_SHADER_ATTRIB_LOCATION_INSTANCE_TX, RL_DEFAULT_SHADER_ATTRIB_NAME_INSTANCE_TX); |
|
|
|
|
|
|
|
#ifdef RL_SUPPORT_MESH_GPU_SKINNING |
|
|
|
glBindAttribLocation(program, RL_DEFAULT_SHADER_ATTRIB_LOCATION_BONEIDS, RL_DEFAULT_SHADER_ATTRIB_NAME_BONEIDS); |
|
|
|