4 ms·
On the rotating cubes, why are the borders showing up as sawed rather than straight lines? Thanks for the tutorial.
by cocoa19 7y ago
On the rotating cubes, why are the borders showing up as sawed rather than straight lines?
Thanks for the tutorial.
- _def 7y agoThat is called aliasing. Three.js defaults to it, but you can turn antialiasing on by passing the option to the WebGLRenderer. I added it here to the example, line 10: https://codepen.io/anon/pen/XwgGrW https://codepen.io/anon/pen/XwgGrW
- dahart 7y agoI think this page might be defaulting to a pixel ratio of 1. On mobile and high-dpi devices, that automatically makes the rendering appear much more aliased, in return for much faster rendering and much less memory usage.