How to use tweakpane - 1 common examples

To help you get started, we’ve selected a few tweakpane examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pissang / paper-quilling-art / src / offlineRender.js View on Github external
roughness: 1,
        color: new THREE.Color(e.data.plane.color[0], e.data.plane.color[1], e.data.plane.color[2]),
    }));
    // ground.material.shadowCatcher = true;
    ground.scale.set(100, 100, 1);
    scene.add(ground);

    init();
});

function updateComposer() {
    sharpenPass.uniforms.sharpness.value = renderConfig.sharpness;
    composer.render();
}

const pane = new Tweakpane({
    container: document.querySelector('#config'),
    title: 'Render Config'
});
pane.addButton({
    title: 'Stop Render'
}).on('click', () => {
    stopRender();
});

// const denoiseFolder = pane.addFolder({
//     title: 'Denoise'
// });
// denoiseFolder.addInput(renderConfig, 'denoise', {
//     label: 'Enable'
// }).on('change', () => {
//     denoiserPasses.forEach(pass => {

tweakpane

A compact pane for fine-tuning parameters and monitoring value changes

MIT
Latest version published 19 days ago

Package Health Score

83 / 100
Full package analysis

Popular tweakpane functions

Similar packages