Skip to content
Snippets Groups Projects
Commit 34e48fb2 authored by Glenn Glazer's avatar Glenn Glazer
Browse files

SL-225: test with joints per mesh set to 72

parent 6c422a88
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@
const S32 LL_CHARACTER_MAX_JOINTS_PER_MESH = 15;
// BENTO JOINT COUNT LIMIT
const U32 LL_CHARACTER_MAX_JOINTS = 152; // must be divisible by 4!
const U32 LL_MAX_JOINTS_PER_MESH_OBJECT = 152;
const U32 LL_MAX_JOINTS_PER_MESH_OBJECT = 72;
// FIXME BENTO - these should be higher than the joint_num of any
// other joint, to avoid conflicts in updateMotionsByType()
......
......@@ -27,8 +27,8 @@ ATTRIBUTE vec4 weight4;
/* BENTO JOINT COUNT LIMITS
* Note that the value in these two lines also needs to be updated to value-1 several places below.
*/
uniform mat3 matrixPalette[152];
uniform vec3 translationPalette[152];
uniform mat3 matrixPalette[72];
uniform vec3 translationPalette[72];
mat4 getObjectSkinnedTransform()
{
......@@ -37,7 +37,7 @@ mat4 getObjectSkinnedTransform()
vec4 w = fract(weight4);
vec4 index = floor(weight4);
index = min(index, vec4(151.0));
index = min(index, vec4(71.0));
index = max(index, vec4( 0.0));
w *= 1.0/(w.x+w.y+w.z+w.w);
......@@ -70,8 +70,8 @@ mat4 getObjectSkinnedTransform()
// If it's AMD make sure the GLSL compiler sees the arrays referenced once by static index. Otherwise it seems to optimise the storage awawy which leads to unfun crashes and artifacts.
mat3 dummy1 = matrixPalette[0];
vec3 dummy2 = translationPalette[0];
mat3 dummy3 = matrixPalette[151];
vec3 dummy4 = translationPalette[151];
mat3 dummy3 = matrixPalette[71];
vec3 dummy4 = translationPalette[71];
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment