Skip to content

Commit dba8102

Browse files
committed
Remove unnecessary resolution updates
This happens automatically now in Pass.
1 parent 8c1ce0f commit dba8102

3 files changed

Lines changed: 0 additions & 23 deletions

File tree

src/effects/BloomEffect.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,6 @@ export class BloomEffect extends Effect implements BloomEffectOptions {
151151

152152
}
153153

154-
protected override onResolutionChange(): void {
155-
156-
const resolution = this.resolution;
157-
this.luminancePass.resolution.copy(resolution);
158-
this.mipmapBlurPass.resolution.copy(resolution);
159-
160-
}
161-
162154
protected override onInputChange(): void {
163155

164156
if(this.input.defaultBuffer === null) {

src/effects/SMAAEffect.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,6 @@ export class SMAAEffect extends Effect implements SMAAEffectOptions {
358358
protected override onResolutionChange(): void {
359359

360360
const { width, height } = this.resolution;
361-
this.edgeDetectionMaterial.setSize(width, height);
362-
this.weightsMaterial.setSize(width, height);
363361
this.renderTargetEdges.value!.setSize(width, height);
364362
this.renderTargetWeights.value!.setSize(width, height);
365363

src/passes/EffectPass.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -340,19 +340,6 @@ export class EffectPass extends Pass<EffectMaterial> {
340340

341341
}
342342

343-
protected override onResolutionChange(): void {
344-
345-
const resolution = this.resolution;
346-
this.fullscreenMaterial.setSize(resolution.width, resolution.height);
347-
348-
for(const effect of this.effects) {
349-
350-
effect.resolution.setBaseSize(resolution.baseWidth, resolution.baseHeight);
351-
352-
}
353-
354-
}
355-
356343
override checkRequirements(): void {
357344

358345
for(const effect of this.effects) {

0 commit comments

Comments
 (0)