Utilities
getControl

getControl

A non reactive way to get the value of a control.

 
import { getControl } from './effect-control'
 
export default function App({
 
  useFrame(() => {
    if (!sphere.current) return
    sphere.current.scale.x = getControl('sphere-control-id', 'scale')
  })
 
  return (
    <>
      ...
    </>
  )
}

Where to find the control ids.