question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to remove a fog?

See original GitHub issue

once i setup a fog on a scene, how to remove it ?

  • How i setup the fog (works as it appears on the screen)
scene.fog = new THREE.FogExp2( 0x000000, 0.1 );
  • how i try to disable the fog (fails as the fog is still visible on screen)
scene.fog = null;

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andrevenanciocommented, Oct 28, 2015

I think there is a cheaper way of doing this without having to update the material (or materials, in case you have a big scene…)

Just update the fog near/far to make it go behind the camera… this works well.

scene.fog.near = 0.1;
scene.fog.far = 0;
0reactions
jeromeetiennecommented, Mar 18, 2012

nice! thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

3 Ways to Remove Fog from a Car Windshield
1. Turn down the AC if it’s warm outside. If you’ve got foggy windows in the summer, turn down your air conditioner. This...
Read more >
How to Remove Fog from Car Glass: Simple Tips to Tackle ...
Shaving foam is another great product that can prevent fogging up. To apply the shaving foam, take a handful and spread it across...
Read more >
How to Remove Fog and Mist From Your Photos Using ...
These naturally occurring complications might ruin some of your best pictures of the trip. Luckily, you can remove mist or fog from your...
Read more >
How to remove fog in Minecraft 1.19 update?
Fortunately, there is a trick to removing fog from the world. However, it does require a mod. Remove fog from Minecraft 1.19 update...
Read more >
How to remove 'fog' and 'water' inside my car's headlights ...
The only solution to remove the moisture from headlamp is to run the car with the high beams ON. The headlamp silicon seal...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found