Custom Depth Mask Unreal Engine 5

Hello, has anyone figured how to make this work

in UE5?

Should be the same, any specific issues you’re running into?