I had created the canvas and rendered the gltf file. I want to take the screenshot the the canvas but whenever I tried to get it gives the blank image, it is not accessing the child and other elements in the canvas

Please give me the solution to access the other elements present on the canvas.

There’s a section about it in the manual: https://threejs.org/manual/#en/tips#screenshot