Skip to content

Commit

Permalink
Fix thin instances not rendered by the geometry renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
Popov72 authored Oct 27, 2021
1 parent dd67853 commit a2f0f47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Rendering/geometryBufferRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,9 +709,10 @@ export class GeometryBufferRenderer {
if (this._enableVelocity) {
effect.setMatrix("previousWorld", this._previousTransformationMatrices[effectiveMesh.uniqueId].world);
effect.setMatrix("previousViewProjection", this._previousTransformationMatrices[effectiveMesh.uniqueId].viewProjection);
if (hardwareInstancedRendering && renderingMesh.hasThinInstances) {
effect.setMatrix("world", world);
}
}

if (hardwareInstancedRendering && renderingMesh.hasThinInstances) {
effect.setMatrix("world", world);
}

// Draw
Expand Down

0 comments on commit a2f0f47

Please sign in to comment.