Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Sprite Quality in WebGL

Discussion in 'WebGL' started by Sposito, Dec 15, 2015.

  1. Sposito

    Sposito

    Joined:
    May 4, 2014
    Posts:
    16
    Hey folks, I am bringing a problem I was trying to solve here over last few days, maybe some of you could bring some light to me.

    Long story in two images:

    WebBrowser:

    Standalone:


    The colours looks kind of washed out but if was only that I would be sleeping at night. The problem is the bubbles' sprites that have this weird artefacts (is that a checker?) I am using unity 5.3 the problem shows in all major web browser. I would really aprecciate if someone could tell me whites going on.

    The project is available here, anyway:
    https://github.com/Sposito/Megalodon-Unity

    Someone?
     
  2. alexsuvorov

    alexsuvorov

    Unity Technologies

    Joined:
    Nov 15, 2015
    Posts:
    327
    Hello Sposito.
    Incorrect scaling of NPOT (non power of two) textures in WebGL will be fixed in 5.4 release.
    For now you can use the following workaround: disable the Generate Mip Maps checkbox in the bubble.png.png Import Settings.
     
    Sposito likes this.
  3. Sposito

    Sposito

    Joined:
    May 4, 2014
    Posts:
    16
    fixed! Thanks million alexsuvorov.
    http://sposito.github.io/Megalodon/