mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 03:22:39 +08:00
fix shadow binding error (#7848)
This commit is contained in:
committed by
GitHub
parent
9160abd320
commit
6a555ad1a9
@@ -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<Texture2D>('default-texture').getGFXTexture()!);
|
||||
pipeline.descriptorSet.bindTexture(UNIFORM_SHADOWMAP_BINDING, builtinResMgr.get<Texture2D>('default-texture').getGFXTexture()!);
|
||||
pipeline.descriptorSet.bindSampler(UNIFORM_SPOT_LIGHTING_MAP_TEXTURE_BINDING, shadowMapSampler);
|
||||
pipeline.descriptorSet.bindTexture(UNIFORM_SPOT_LIGHTING_MAP_TEXTURE_BINDING, builtinResMgr.get<Texture2D>('default-texture').getGFXTexture()!);
|
||||
this._globalBinding = true;
|
||||
|
||||
Reference in New Issue
Block a user