Skip to content

Commit c2b20c4

Browse files
authored
Make the outline renderer work for thin instances (#8734)
* Make the outline renderer work for thin instances * Fix lint
1 parent 77c3c1c commit c2b20c4

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)