Explorar o código

Make the outline renderer work for thin instances (#8734)

* Make the outline renderer work for thin instances

* Fix lint
Popov72 %!s(int64=5) %!d(string=hai) anos
pai
achega
c2b20c4de2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/Rendering/outlineRenderer.ts

+ 1 - 0
src/Rendering/outlineRenderer.ts

@@ -183,6 +183,7 @@ export class OutlineRenderer implements ISceneComponent {
         this._effect.setFloat("offset", useOverlay ? 0 : renderingMesh.outlineWidth);
         this._effect.setColor4("color", useOverlay ? renderingMesh.overlayColor : renderingMesh.outlineColor, useOverlay ? renderingMesh.overlayAlpha : material.alpha);
         this._effect.setMatrix("viewProjection", scene.getTransformMatrix());
+        this._effect.setMatrix("world", effectiveMesh.getWorldMatrix());
 
         // Bones
         if (renderingMesh.useBones && renderingMesh.computeBonesUsingShaders && renderingMesh.skeleton) {