Jump to content

Disable Anti-Aliasing - Force Nearest Neighbour Interpolation


Recommended Posts

How do I switch to nearest neighbour interpolation?

Firstly, I've tried the `antialias: false` flag when creating the renderer.

Secondly, I've tried all the CSS flags for `image-rendering`.

Thirdly, I've tried setting `context.imageSmoothingEnabled = false`.

Usually, the third works but this time, none of them have worked. I'm still getting fuzzy, anti-aliased images, when I'd like nearest neighbour interpolated ones instead- this is what WebGL does by default when you upscale something.

How does one switch to nearest neighbour interpolation (by disabling anti aliasing)?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...