I tried to use dat.GUI in the following three.js example.
I just did the following code changes to add a GUI to adjust mesh opacity.
Move the controls init block after the renderer init block, and change this line:
controls = new THREE.TrackballControls( camera );
to this:
controls = new THREE.TrackballControls( camera, renderer.domElement );