Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Generate better mipmaps for SVG textures #323

Description

@tim-we

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientwebglInvolves WebGL or shader code

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions