toy(noiseFunction[1] + demo, {
width,
height: (width * 9) / 16,
extra_uniforms: {
speed: `Inputs.range([0,2], {label:"Speed", step:0.01, value:0.5})`,
scale: `Inputs.range([1,40], {label:"Scale", step:0.01, value:10})`,
offset: `Inputs.range([0,1], {label:"Offset", step:0.001, value:0})`,
multiplier: `Inputs.range([0.01,4], {label:"Multiplier", step:0.01, value:1})`,
first: `Inputs.range([-1,1], {label:"Worley 1st dist", step:0.01, value:0.5})`,
second: `Inputs.range([-1,1], {label:"Worley 2nd dist", step:0.01, value:0.5})`,
octaves: `Inputs.radio([1,2,3,4,5,6,7,8], {label: "Octaves", value: 1 })`,
lacunarity: `Inputs.range([1,2], {label: "Lacunarity", value: 2, step:0.01 })`,
persistence: `Inputs.range([0.5,1], {label: "Persistence", value: 0.5, step:0.01 })`,
colorNoise: `Inputs.radio([0,1], {label: "Color noise", value: 1 })`,
bumpmapNoise: `Inputs.radio([0,1], {label: "Bumpmap noise", value: 0 })`
}
})