Threejs Scene Screenshot

Hey, I have ring configuration. I want to export the current state of the rings. So i am using screenshot way but there is a problem. When i get screenshot scene’s, objects return dark. Why?

export function exportSTL(modelKey) {
  var renderer = new THREE.WebGLRenderer()
  renderer.setSize(window.innerWidth, window.innerHeight);
  renderer.render(appInstance.scene, appInstance.scene.children[2]);
  var dataURL = renderer.domElement.toDataURL();
  var link = document.createElement('a');
  link.href = dataURL; = 'screenshot.png';;


most likely scene textures have their needsUpdate set to false after they were originally created, but now when you use them in the new webgl context you really want to set these to true

I want to get directly ring’s screenshot. I can make alternative way. I searched and found this way. But I’m open to suggestions.