Browse Source

OutlinePass - Support InstancedMeshes (#24440)

Toby Gilbert 3 years ago
parent
commit
0b367a29f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/postprocessing/OutlinePass.js

+ 1 - 1
examples/jsm/postprocessing/OutlinePass.js

@@ -444,9 +444,9 @@ class OutlinePass extends Pass {
 					#include <morphtarget_vertex>
 					#include <skinning_vertex>
 					#include <project_vertex>
+					#include <worldpos_vertex>
 
 					vPosition = mvPosition;
-					vec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );
 					projTexCoord = textureMatrix * worldPosition;
 
 				}`,