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.

Fog in JavaScript / WebGL

Home Forums Programming Fog in JavaScript / WebGL

Tagged: 

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #26011

    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

    #26017
    doehlma
    Customer

    ok.. thanks for information and help

    #26019
    doehlma
    Customer

    I tried and.. it works perfect .. :good:

    #26091

    glad it helped!

    Chief 3D Verger | LinkedIn | Twitter

Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.