Accessing "Detailed Lighting" Data in Code for Gameplay

Hey everyone,

I’m trying to figure out how to capture something like Unreal’s “Detailed Lighting” view mode and write it into a render target so I can use it during gameplay.

The idea is to isolate just the lighting (like the editor view mode does). I’m not sure if this would need engine source changes to hook into the deferred renderer at the right stage, or if there’s another way to get that data.

If anyone knows where this is handled in the rendering pipeline, or has tried something similar, I’d really appreciate any tips.

1 Like

I think it might be much more simple

(post deleted by author)

I feel like you didn’t read my post.

No, this is settings the viewmode as the whole view for the current camera, I’m trying to get that data into a render target.
Also this would not work in a shipping build.

1 Like

You’re right, I missed the render target part. Sorry about that :-/

I think you might be able to do it as part of the render target post process. This link has a couple of potentials

https://www.reddit.com/r/unrealengine/comments/1eys6af/how_do_i_access_or_replicate_the_lighting_only/