This proof of concept is the AR version of an earlier, purely virtual game.
Using Niantic Lightship's depth and semantic segmentation, I wrote a simple script to detect where a real pond was, and updated the duck code to stay within this runtime-generated space. Of course, the ducks can still be fed by tapping the water :)
By changing the semantics channel that is being detected, this app could also work on different horizontal surfaces, such as grass or ground. To make this still look somewhat like a duck pond, it did need an adjusted shader.