From 6a555ad1a92af50f7d102efa647777c046c372da Mon Sep 17 00:00:00 2001 From: troublemaker52025 Date: Mon, 23 Nov 2020 17:44:45 +0800 Subject: [PATCH] fix shadow binding error (#7848) --- cocos/core/pipeline/shadow/shadow-flow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/core/pipeline/shadow/shadow-flow.ts b/cocos/core/pipeline/shadow/shadow-flow.ts index 9d24ff0dde..963246be03 100644 --- a/cocos/core/pipeline/shadow/shadow-flow.ts +++ b/cocos/core/pipeline/shadow/shadow-flow.ts @@ -198,7 +198,7 @@ export class ShadowFlow extends RenderFlow { const shadowMapSamplerHash = genSamplerHash(_samplerInfo); const shadowMapSampler = samplerLib.getSampler(device, shadowMapSamplerHash); pipeline.descriptorSet.bindSampler(UNIFORM_SHADOWMAP_BINDING, shadowMapSampler); - pipeline.descriptorSet.bindTexture(UNIFORM_SPOT_LIGHTING_MAP_TEXTURE_BINDING, builtinResMgr.get('default-texture').getGFXTexture()!); + pipeline.descriptorSet.bindTexture(UNIFORM_SHADOWMAP_BINDING, builtinResMgr.get('default-texture').getGFXTexture()!); pipeline.descriptorSet.bindSampler(UNIFORM_SPOT_LIGHTING_MAP_TEXTURE_BINDING, shadowMapSampler); pipeline.descriptorSet.bindTexture(UNIFORM_SPOT_LIGHTING_MAP_TEXTURE_BINDING, builtinResMgr.get('default-texture').getGFXTexture()!); this._globalBinding = true;