Shader looks different when running on browser and locally

Godot Version

4.2.2

Question

Hello, I’m experimenting with a shader that modifies lightning and has a normal map.

I’m on compatibility mode, on Godot 4.2.2. I tried both firefox and chrome.

The shader looks good when running locally, but when running on a browser it looks wrong. I’m not sure if this is a bug or if I’m missing something. The only errors shown in the web console are related to audio.

Local:

Web:

The torus doesn’t have a normal map, and it’s the only one that looks good.

Any idea what could be happening here?

1 Like

What rendering did you choose when you setup the project? Off the top of my head, something you’re doing or have set int he global environment isn’t doing well with the compatibility rendering that I believe web builds use.

I set it up with compatibility rendering from the get-go, since the idea was using it for a web project

It seems like it was a godot bug after all. I tried it with the 4.3 beta and it works fine

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.