Skip to content

Commit

Permalink
Fix where morphtargets were passing a vector2 instead of a flat array…
Browse files Browse the repository at this point in the history
… to set2iv
  • Loading branch information
snagy committed Sep 20, 2022
1 parent 20bd138 commit aa17433
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12806,7 +12806,7 @@ function WebGLMorphtargets(gl, capabilities, textures) {
program.getUniforms().setValue(gl, 'morphTargetBaseInfluence', morphBaseInfluence);
program.getUniforms().setValue(gl, 'morphTargetInfluences', objectInfluences);
program.getUniforms().setValue(gl, 'morphTargetsTexture', entry.texture, textures);
program.getUniforms().setValue(gl, 'morphTargetsTextureSize', entry.size);
program.getUniforms().setValue(gl, 'morphTargetsTextureSize', [entry.size.x, entry.size.y]);
} else {
// When object doesn't have morph target influences defined, we treat it as a 0-length array
// This is important to make sure we set up morphTargetBaseInfluence / morphTargetInfluences
Expand Down
2 changes: 1 addition & 1 deletion build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -12808,7 +12808,7 @@
program.getUniforms().setValue(gl, 'morphTargetBaseInfluence', morphBaseInfluence);
program.getUniforms().setValue(gl, 'morphTargetInfluences', objectInfluences);
program.getUniforms().setValue(gl, 'morphTargetsTexture', entry.texture, textures);
program.getUniforms().setValue(gl, 'morphTargetsTextureSize', entry.size);
program.getUniforms().setValue(gl, 'morphTargetsTextureSize', [entry.size.x, entry.size.y]);
} else {
// When object doesn't have morph target influences defined, we treat it as a 0-length array
// This is important to make sure we set up morphTargetBaseInfluence / morphTargetInfluences
Expand Down
2 changes: 1 addition & 1 deletion build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -16764,7 +16764,7 @@ function WebGLMorphtargets( gl, capabilities, textures ) {
program.getUniforms().setValue( gl, 'morphTargetInfluences', objectInfluences );

program.getUniforms().setValue( gl, 'morphTargetsTexture', entry.texture, textures );
program.getUniforms().setValue( gl, 'morphTargetsTextureSize', entry.size );
program.getUniforms().setValue( gl, 'morphTargetsTextureSize', [entry.size.x, entry.size.y] );


} else {
Expand Down
2 changes: 1 addition & 1 deletion src/renderers/webgl/WebGLMorphtargets.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function WebGLMorphtargets( gl, capabilities, textures ) {
program.getUniforms().setValue( gl, 'morphTargetInfluences', objectInfluences );

program.getUniforms().setValue( gl, 'morphTargetsTexture', entry.texture, textures );
program.getUniforms().setValue( gl, 'morphTargetsTextureSize', entry.size );
program.getUniforms().setValue( gl, 'morphTargetsTextureSize', [entry.size.x, entry.size.y] );


} else {
Expand Down

0 comments on commit aa17433

Please sign in to comment.