Using distance field in Post Process not working during play (in editor fine)

Hi

I am sampling the global distance field inside a custom node inside a post process blendable. In editor this works fine but when I play or run a standalone game it doesn’t work and returns 0.

Here is the post on the forum…

Hey Daniel,

I saw you got this figured it out on the forums: Post Processing/Global Distance Field effect fine in viewport/simulate but Black during play. - Rendering - Epic Developer Community Forums

Thanks,

Tim

Yeah thanks I did tim. It was strange that I was getting different behaviour between editor and in game though. not sure if its worth investigating but it would’ve saved me a couple of days of figuring it out if this was a known thing. I’ll have to keep it in mind for the future as it could affect shaders if they use camera position in their materials.