We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
Home › Forums › Programming › Fog in JavaScript / WebGL
Tagged: fog
Hi Marcus,
You can enable fog with this JavaScript line
app.scene.fog = new v3d.FogExp2('red', 0.02);
which should be added inside the runCode() function of your_app.js file
(see more info here)
Chief 3D Verger | LinkedIn | Twitter
ok.. thanks for information and help
I tried and.. it works perfect ..
glad it helped!
Log in / Register