DubiousDillan Posted September 1, 2016 Share Posted September 1, 2016 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)? Quote Link to comment Share on other sites More sharing options...
DubiousDillan Posted September 1, 2016 Author Share Posted September 1, 2016 Solved this by setting the default value to nearest. Looking at the source code was useful too! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.