Using Blending in Z-Depth Animations

I’ve been having this problem since I started using z-depth on my animations. When I draw light like on a lamp and try adding the blending node, for burn or overlay effects, it never works, the only effect that works with z-depth seems to be Glow. Do you know if there’s a way to fix this? Thanks!

While burn and overlay blending modes might not work directly with z-depth, you can use z-depth information to influence other aspects of your scene. For example, you could adjust the intensity or color of the light based on the z-depth, creating a depth-dependent lighting effect.

How would you do that? Is that on the node Library?