From 5becdc48739e4ce7745d15a60c46612f991ae5f2 Mon Sep 17 00:00:00 2001 From: hellmor Date: Tue, 14 Nov 2023 17:46:04 +0800 Subject: [PATCH] fix: Auto sort transparent renderers. (#318) Auto sort transparent renderers after renderOrder changed. --- src/gfx/renderJob/collect/EntityCollect.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gfx/renderJob/collect/EntityCollect.ts b/src/gfx/renderJob/collect/EntityCollect.ts index e1afaa4d..24ff83bf 100644 --- a/src/gfx/renderJob/collect/EntityCollect.ts +++ b/src/gfx/renderJob/collect/EntityCollect.ts @@ -261,6 +261,7 @@ export class EntityCollect { public getRenderNodes(scene: Scene3D, camera: Camera3D): CollectInfo { + this.autoSortRenderNodes(scene); this._collectInfo.clean(); this._collectInfo.sky = this.sky;