Search code examples
unity-game-engineunity-webgl

Why is my texture quality so poor when running a webGL build from unity?


I've imported a texture whose quality drops significantly in web builds. I have the compression set to "none", and max size set as high as it will go,

with "Override for Web GL" left unchecked

The scaling is 1:1,

and in Project Settings > Quality, I have webGL set to "Ultra"

And still there's a visible difference in quality by comparison to running on desktop. It's much more pixelated. I've tried in both Chrome and Firefox.

Does WebGL have some hard limitation that desktop doesn't? The image's native size is 948 x 1340

Thank you!


Solution

  • I've figured out the answer! While the mip map helped by adding a slight blur, to smooth off the edges, the real issue was that the texture I was using was too large. Under File > Build Settings > Player Settings, I could change the resolution.

    Unfortunately, by making it large enough to see the whole texture clearly, it becomes too large to see without zooming out the page. There doesn't seem to be a clean solution. Resizing an image means loss in resolution, but at least now I know why it was looking the way it was out the other end.