I'm working on a THREE.js scene that I'd like to render with a pixelated effect. To do so, I'm using renderer.setPixelRatio(...)
to draw the scene at a low resolution, which works fine. The problem is that the result seems to be antialiased, maybe even by the canvas' WebGL context.
In the Canvas 2d drawing api, one can set canvas.context.imageSmoothingEnabled = false;
to ensure that low-resolution scenes are drawn with a crisp pixelated effect. I tried using this parameter on my renderer.context
, with no effect. Is there some other way around this?
Thanks!