News for hackers. Stuff that matters.
Re:Show HN: Physically accurate black hole you can put in yo... by nnevatie on Monday August 03, 2026 @01:44AM (#49151652)
Setting render scale to 1 definitely helped - the aliasing from the lines is gone.

The rest of the circular aliasing could likely be fixed by requesting MSAA, so e.g.:

renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true, powerPreference: 'high-performance', })

Re:Show HN: Physically accurate black hole you can put in yo... by aplavin on Monday August 03, 2026 @09:09PM (#49163299)
Would MSAA compute more samples, effectively multiplying shader computation? Ideally, it should be something adaptive, to the number of pixels/device compute power, eg compute 2x smaller resolution on phones/retina, compute 1x resolution on larger-pixel screens, and maybe even 1x + MSAA beyond some pixel sizes... Just wanted to avoid reinventing these heuristics.