A-Frame: Screenshot color management is breaking

  aframe, javascript, screenshot, three.js

Is there some way I can make sure the screenshot capture retains my renderer color management settings?

I have color management set to true (right image), but as soon as I take a screenshot it takes it as if it was false (left image).
screenshot

I’m just using the basic screen capture code:

const scene = document.querySelector('a-scene');
scene.setAttribute('screenshot', {
      width: 4096,
      height: 2048
});
scene.components.screenshot.capture('perspective');

Source: Ask Javascript Questions

LEAVE A COMMENT