Remove UI module
This commit is contained in:
@@ -59,18 +59,18 @@ export function createLightSlider(direction, label, range, step) {
|
||||
* @param {Array<Number>} range - The slider's range
|
||||
* @param {Number} step - The slider's step
|
||||
*/
|
||||
export function createExposureSlider(label, range, step = 0.2) {
|
||||
export function createExposureSlider(label, range, step = 0.05) {
|
||||
const currentVal = AppState.exposure;
|
||||
|
||||
const exposureSlider = ATON.UI.createSlider({
|
||||
range,
|
||||
label,
|
||||
value: Number.parseFloat(currentVal).toPrecision(2),
|
||||
value: Number.parseFloat(currentVal).toPrecision(1),
|
||||
oninput: val => {
|
||||
ATON.setExposure(val);
|
||||
AppState.exposure = val;
|
||||
|
||||
console.debug(ATON.getExposure());
|
||||
console.debug('Current exposure:', ATON.getExposure());
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user