Skip to content

Commit

Permalink
Fix the problem of skybox black in the editor on mac. (cocos#7539)
Browse files Browse the repository at this point in the history
  • Loading branch information
caryliu1999 authored Oct 16, 2020
1 parent 2cdc3d1 commit adee4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocos/core/pipeline/define.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit adee4e4

Please sign in to comment.