SceneTexture Material not Rendering in Movie Render Queue

Hi,
I’m trying to subtract a SceneDepth scene texture from a Custom Depth scene texture to get an outline around a mesh. It works in-editor/viewport and in old Movie Scene Capture (Legacy) render tool, but not the in the Movie Render Queue. The material just doesn’t appear unless I do some division/multiplication steps, and even then, it’s usually grainy and not what I want.

I tried turning Additional Post Process Materials hoping that they would help but I didn’t do anything

Any help is appreciated. I was doing the outline with a WPO offset and Fresnel effect before, but I wanted a way to hide overlapping mesh edges.

Edit: A potential cause I found may be because I’m rendering only the layer with my object, so my material can’t pull the Scene Texture data when rendering since it’s excluded from the render.