[SOLVED] How to disable and enable fog by script?

The white fog looks amazing in the lobby, but in the playground (this area is really dark) it takes away the effect I want, any help on how I can do this, or other alternative options? Thanks in advance. PlayCanvas | HTML5 Game Engine

Looking at the manual page it should be something like below.

this.app.scene.fog = 'none';
1 Like

And how to re enable?

Based on your project I guess like below.

this.app.scene.fog = 'exp';
1 Like

It worked, but fog was not the problem, is there a way to make certain areas darker than others?

Thx btw

You maybe can change the fog color or reduce the light (intensity).