Can I capture the GlowLayer Using Render Target?

Hello,

Should I be able to capture the GlowLayer with CreateScreenshotUsingRenderTarget?

I read how Particles were added to Screenshot but can’t find anything about GlowLayer. I’m using the following arguments. Am I missing something?

...Engine(canvas3D, true, { preserveDrawingBuffer: true, stencil: true });
...CreateScreenshotUsingRenderTarget(engine, scene.cameras[0] );

Thanks,
TheSkrapper

Unfortunately the Effect layers do not work on RenderTarget as they are compositing in the main canvas at the end so it won t work with the screenshots as render targets.

Thanks for the reply sebavan. I thought there might be a reason it wasn’t working.

Hi!
It’s been a while but I ran into this post when I was trying to solve the same issue and here is a working PG with glow screen captures. Press Space to capture.

:vulcan_salute:

5 Likes