KielerGames / ringofsnakes

A multiplayer browser game based on the classic snake game.
https://ringofsnakes.io
GNU General Public License v3.0
1 stars 0 forks source link

Generate better mipmaps for SVG textures #323

Open tim-we opened 1 year ago

tim-we commented 1 year ago

Currently we just render the SVG at a fixed resolution (128x128 or 256x256) and then use gl.generateMipmap(gl.TEXTURE_2D) to generate mipmaps. This does not utilize vector information though leading to visible artifacts at the edges when repeating the texture. Perhaps this could be improved by generating the different levels of detail ourselves. The SVG file should be loaded just once and then rendered at different resolutions.

tim-we commented 8 months ago

Is this still required after https://github.com/KielerGames/ringofsnakes/pull/512 ?