- Toggling between modes
- After choosing the mode, we were unable to change the mode
- We used QuerySelector function that allows changing mode once again
- Toggling between two modes was allowed only once
- we used QuerySelectorAll instead of QuerySelector as : The querySelector() method returns the first element within the document which matches a specified CSS selector(s). If multiple elements occurs, then it returns the result for only the first matching element. The querySelectorAll() method returns all the elements within the document which matches the specified CSS selector(s). It returns all the elements that matches with the selector in the form of a static NodeList object which is a collection of nodes.
- Changing iso value:
- Changing ray casting properties:
-Toggling between modes: