Skip to content

Commit 39bff4a

Browse files
authored
Respect morph targets in OutlinePass (#21836)
1 parent db7851f commit 39bff4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/js/postprocessing/OutlinePass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@
395395
#include <project_vertex>
396396
397397
vPosition = mvPosition;
398-
vec4 worldPosition = modelMatrix * vec4( position, 1.0 );
398+
vec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );
399399
projTexCoord = textureMatrix * worldPosition;
400400
401401
}`,

examples/jsm/postprocessing/OutlinePass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ class OutlinePass extends Pass {
453453
#include <project_vertex>
454454
455455
vPosition = mvPosition;
456-
vec4 worldPosition = modelMatrix * vec4( position, 1.0 );
456+
vec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );
457457
projTexCoord = textureMatrix * worldPosition;
458458
459459
}`,

0 commit comments

Comments
 (0)