Have a Go: Adding Interactivity

We are going to add an additional slider to our controls widget to interactively change the position of the blue light we just added.

We will use dat.GUI, one for each one of the blue light coordinates.

dat.GUI

You can find more information about dat.GUI on GitHub: https://github.com/dataarts/dat.gui.
  1. Create three sliders: one for the X coordinate, one for the Y coordinate, and a third one for the Z coordinate for the blue light.
  1. The final GUI should include the new blue light sliders, which should look like the following:

  1. Use the sliders present in the page to guide your work.
  2. You will find the completed exercise in the ch06_03_wall-final.html file.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.116.159