Skip to content

example(afterBurner): keep antiAlias off to preserve the retro look - #1589

Merged
obiot merged 1 commit into
masterfrom
example/afterburner-antialias
Aug 17, 2026
Merged

example(afterBurner): keep antiAlias off to preserve the retro look#1589
obiot merged 1 commit into
masterfrom
example/afterburner-antialias

Conversation

@obiot

@obiot obiot commented Aug 17, 2026

Copy link
Copy Markdown
Member

antiAlias: true was enabled on this example to smooth the low-poly models as they recede. It does that — but the flag drives two other things as well:

  • the default texture filter goes linear (textureFilter: "auto" follows antiAlias)
  • the canvas gets image-rendering: auto, so under scale: "auto" the whole 1024x576 backing store is bilinear-filtered on its way to the screen

The net effect is that the entire frame is softened to gain smoother model silhouettes, which is the wrong trade for a scene whose look is crisp and blocky.

textureFilter already separates the texture half. The presentation half is not separable today, so "MSAA'd edges with a hard-edged upscale" is not currently expressible — off is the honest setting rather than a half-configured one.

Comment updated to record why, so the next person doesn't re-enable it for the reason it was enabled the first time.

`antiAlias: true` was enabled to smooth the low-poly models as they recede,
which it does. But the flag drives two other things: the default texture
filter goes linear, and the canvas gets `image-rendering: auto` — so under
`scale: "auto"` the entire 1024x576 frame is bilinear-filtered on its way to
the screen. That trades the example's crisp, blocky presentation for
smoother model edges, which is the wrong trade for this scene.

`textureFilter` already separates the texture half of that. The
presentation half is not separable today, so MSAA'd silhouettes with a
hard-edged upscale is not currently expressible — hence off rather than
half-configured.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QVjYzf76AEU3wJk766JAQi
Copilot AI lite review requested due to automatic review settings August 17, 2026 11:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@obiot
obiot merged commit 3b671a0 into master Aug 17, 2026
6 checks passed
@obiot
obiot deleted the example/afterburner-antialias branch August 17, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants