From adee4e410b828e8ec9731dde115002b8f5aba396 Mon Sep 17 00:00:00 2001 From: cary <39078800+caryliu1999@users.noreply.github.com> Date: Fri, 16 Oct 2020 13:54:53 +0800 Subject: [PATCH] Fix the problem of skybox black in the editor on mac. (#7539) --- cocos/core/pipeline/define.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/core/pipeline/define.ts b/cocos/core/pipeline/define.ts index 894cdeb392..24bbbe831e 100644 --- a/cocos/core/pipeline/define.ts +++ b/cocos/core/pipeline/define.ts @@ -92,12 +92,12 @@ export enum PipelineGlobalBindings { UBO_GLOBAL, UBO_SHADOW, - SAMPLER_ENVIRONMENT, SAMPLER_SHADOWMAP, + SAMPLER_ENVIRONMENT, // Note: Due to the bindless optimizations, environment using unit 0 will affect the rendering in the editor. COUNT, } -const GLOBAL_UBO_COUNT = PipelineGlobalBindings.SAMPLER_ENVIRONMENT; +const GLOBAL_UBO_COUNT = PipelineGlobalBindings.SAMPLER_SHADOWMAP; const GLOBAL_SAMPLER_COUNT = PipelineGlobalBindings.COUNT - GLOBAL_UBO_COUNT; export enum ModelLocalBindings {