Rendering is completely broken in WebGL build

I’ve been working on customizing the FPS Microgame in Unity for the past month, but when I created a WebGL build of the project and ran it on localhost and Unity Play, the 3D rendering was completely broken for every scene. This is what it looks like:

It runs just fine in the editor and is only like this in the build. I’ve tried restarting Unity and rebuilding the project, but it still had this glitchy effect. I have a previous build that isn’t broken.

Any idea of what’s going on?

What browser? Tried any other? System specs? Unity version? Render Pipeline?

I‘d say try playing with quality/graphics settings and turn off postprocessing, if any.

I have a hunch this may be Safari on an M1 mac.

It’s on Chrome, I’m on Windows with Unity version 2021.3.16 and using URP. I just tried it in Firefox and it worked! It didn’t work on Microsoft Edge, though.

i recently converted a couple of my games to urp for webgl and while the 3d one went super super dark, and i had to bump all the lights a lot, i am glad I didnt suffer this, both mine at working as expected

Check player settings. If there is WebGL v1 listed remove that, you should only be targeting v2 these days. WebGL v1 has been removed entirely in 2022.x I believe. Not sure if that fixes the issue though.

I’d also check Chrome and graphics drivers for updates.

I have WebGL 2 listed. I updated Chrome but nothing changed, and I don’t have any driver updates.

out of interest then does sillygames.online/mnm/ bring up a normal looking game, or weird like yours? (dont bother playing its very much work in progress)

It works fine

But the UI in my game works fine too. It’s only the 3D part that’s weird.

Ah but you see technically thats not all 2d either :stuck_out_tongue:

out of interest check your lower graphics qualities on your game and set your ide to run at like low low, see if that replicates what you see in the browser

No, it doesn’t get as crazy as in the browser.

can you upload it somewhere, i will check seem if its fruity for me too? help narrow down maybe

looks like its a you thing

Hmmm

That’s strange

What browser are you using?

For me it’s broken in Chrome and Edge:

In Firefox it’s working.

Yes, that’s what I observed

thats edge and win 11 on a £380 quid laptop of ultra crapness