Skip to content

Commit

Permalink
Work around Moiré artifacts on Apple silicon.
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyHairy committed Nov 28, 2021
1 parent 6f923e5 commit 238389d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/web/driver/video/NtscProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class NtscProcessor implements Processor {

render(texture: WebGLTexture): void {
this._pass(texture, this._targetPass1, this._programPass1, 960);
this._pass(this._targetPass1, this._targetPass2, this._programPass2, 480);
this._pass(this._targetPass1, this._targetPass2, this._programPass2, 960);
}

getWidth(): number {
Expand Down Expand Up @@ -131,7 +131,7 @@ class NtscProcessor implements Processor {
gl.TEXTURE_2D,
0,
gl.RGBA,
texture === this._targetPass1 ? 960 : 480,
960,
height,
0,
gl.RGBA,
Expand Down Expand Up @@ -231,7 +231,7 @@ class NtscProcessor implements Processor {
namespace NtscProcessor {
export const enum mode {
composite = 'composite',
svideo = 'svideo'
svideo = 'svideo',
}
}

Expand Down

0 comments on commit 238389d

Please sign in to comment.