Skip to content

Commit

Permalink
fix(shadow): copy texture to texture error (#339)
Browse files Browse the repository at this point in the history
copy texture to texture error (#339)
  • Loading branch information
Codeboy-cn committed Nov 26, 2023
1 parent fe73994 commit 6fea86a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class ShadowMapPassRenderer extends RendererBase {
const dirLight = light as DirectLight;
let shadowIndex = dirLight.shadowIndex;
this.rendererPassState = this.rendererPassStates[shadowIndex];
shadowSize = this.rendererPassState.depthTexture.width;

let viewRenderList = EntityCollect.instance.getRenderShaderCollect(view);
for (const renderList of viewRenderList) {
Expand Down

0 comments on commit 6fea86a

Please sign in to comment.