So I have a javascript object that looks like this
var parameters = {bgColor: 0x5886a0,
ambientColor:0xffffff,
opacityCS:[ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
whiteThreshold:[160,160,160,160,160,160] };
I would like to add a slider for each opacityCs and for each whiteThreshold.
For other parameters is easy
gui.addColor( parameters, 'ambientColor' ).onChange( function(){/**/});
or
gui.add( parameters, 'variable', -0.5, 0.5, 0.005 );
But I dont find the way to add elements of arrays. Can anyone help?