From 396dca5ce1a533b4cdb94f9329cc9dedddbb0d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=A3=AE=E6=96=8C?= Date: Mon, 14 Mar 2022 17:00:02 +0800 Subject: [PATCH] modify diffuseMap property visible (#10333) --- cocos/core/scene-graph/scene-globals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/core/scene-graph/scene-globals.ts b/cocos/core/scene-graph/scene-globals.ts index 27fc8e9474..d6d69aac8c 100644 --- a/cocos/core/scene-graph/scene-globals.ts +++ b/cocos/core/scene-graph/scene-globals.ts @@ -388,7 +388,7 @@ export class SkyboxInfo { * @zh 使用的漫反射卷积图 */ @visible(function (this : SkyboxInfo) { - if (this.useIBL) { + if (this.useIBL && this.applyDiffuseMap) { return true; } return false;