Skip to content

Commit a7ad656

Browse files
committed
Merge branch 'master' of https://github.com/BabylonJS/Babylon.js
2 parents 187e75b + c2b20c4 commit a7ad656

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Rendering/outlineRenderer.ts

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ export class OutlineRenderer implements ISceneComponent {
183183
this._effect.setFloat("offset", useOverlay ? 0 : renderingMesh.outlineWidth);
184184
this._effect.setColor4("color", useOverlay ? renderingMesh.overlayColor : renderingMesh.outlineColor, useOverlay ? renderingMesh.overlayAlpha : material.alpha);
185185
this._effect.setMatrix("viewProjection", scene.getTransformMatrix());
186+
this._effect.setMatrix("world", effectiveMesh.getWorldMatrix());
186187

187188
// Bones
188189
if (renderingMesh.useBones && renderingMesh.computeBonesUsingShaders && renderingMesh.skeleton) {

0 commit comments

Comments
 (0)