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 1, 2022
1 parent d9d3eb3 commit 6f15682
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12985,7 +12985,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 @@ -12987,7 +12987,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.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -16999,7 +16999,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 @@ -189,7 +189,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 6f15682

Please sign in to comment.