oRad = d => d * Math.PI / 180;

  const radius = 200;
  const settings = {
    fieldOfView: degToRad(100),
    cameraAngle: 0,
  };

  const radToDegOptions = { min: -360, max: 360, step: 1, converters: GUI.converters.radToDeg };

  const gui = new GUI();
  gui.onChange(render);
  gui.add(settings, 'fieldOfView', {min: 1, max: 179, converters: GUI.converters.radToDeg});
  gui.add(settings, 'cameraAngle', radToDegOptions);

  let depthTexture;

  function render() {
    // Get the current texture from the ca