Skip to content

Commit

Permalink
Rename backdrop filter _basePass to _blendPass
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin committed Feb 22, 2024
1 parent 383de2d commit ea46220
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backdrop-blur/BackdropBlurFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type BackdropBlurFilterOptions = BlurFilterOptions;

export class BackdropBlurFilter extends BlurFilter
{
private _basePass: Filter;
private _blendPass: Filter;

/**
* @param options - The options of the blur filter.
Expand All @@ -33,7 +33,7 @@ export class BackdropBlurFilter extends BlurFilter
this.blendRequired = true;
this.padding = 0;

this._basePass = new Filter({
this._blendPass = new Filter({
gpuProgram: GpuProgram.from({
vertex: {
source: wgslVertex,
Expand Down Expand Up @@ -115,8 +115,8 @@ export class BackdropBlurFilter extends BlurFilter

super.apply(filterManager, backTexture, blurredBackground, true);

this._basePass.resources.uBackground = blurredBackground.source;
this._basePass.apply(filterManager, input, output, clearMode);
this._blendPass.resources.uBackground = blurredBackground.source;
this._blendPass.apply(filterManager, input, output, clearMode);

TexturePool.returnTexture(blurredBackground);
}
Expand Down

0 comments on commit ea46220

Please sign in to comment.