header

Often we want to have interactivity. Let's introduce some sliders.

LG can automatically bind these sliders to glsl. For that you only need to name a float uniform with the id of the slider, prefixed by html_, something like this :

let vs = ` uniform float html_power; uniform float html_offset; uniform float html_radius; uniform float html_zoom; // ... `

Here is a full demo.

power
offset
radius
zoom
divergence