Skip to content

Commit

Permalink
Use getBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Mar 5, 2024
1 parent 713a811 commit 5bc008e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/passes/DepthCopyPass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class DepthCopyPass extends Pass<DepthCopyMaterial> {

protected override onInputChange(): void {

this.fullscreenMaterial.depthBuffer = this.input.buffers.get(GBuffer.DEPTH)?.value as Texture;
this.fullscreenMaterial.depthBuffer = this.input.getBuffer(GBuffer.DEPTH);

}

Expand Down

0 comments on commit 5bc008e

Please sign in to comment.