Material Function SceneTexture Errors

Hello,

i tried to create a outline PPE and create for this material functions. But always i get these errors if i add a scenetexture to the output node: [SM5] SceneTexture expressions cannot be used in opaque materials, [SM5] Only transparent or postprocess materials can read from scene depth.

How can i fix this? (My Material Domain is a Post Process of the PPE Material where i use these functions)

Greets