;  // convert to seconds

    if (resizeRendererToDisplaySize(renderer)) {
      const canvas = renderer.domElement;
      camera.aspect = canvas.clientWidth / canvas.clientHeight;
      camera.updateProjectionMatrix();
    }

    mesh.position.set(
      Math.sin(time * 1.2) * 5,
      Math.sin(time * 1.1) * 5,
      Math.sin(time * 1.3) * 10,
    );
    xElem.textContent = mesh.position.x.toFixed(3);
    yElem.textContent = mesh.position.y.toFixed(3);
    zElem.textContent = mesh.position.z.toFixed(3);

 