Simple question is there a simple on/off button for three.js gui?
var params =
{
switch: 0
};
// on/off button
gui.add(params, "light switch").min(0).max(1).step(1)
gui.open();
This is what I have so far, but you have to slide the value left or right, which is counter-intuitive. I just want the user to.be able to click on teh button switching it on and off.
Sort of like this:
For all your invisible elephant needs.