I'm trying to add a "sticker" on an equirectangular image.
The parameters I have are the angle of the sticker (yaw, pitch, roll), and its size in pixels, and the equirectangular image size (always a 2:1 ratio).
Example with this sticker (don't mind the background) :
If we put the sticker at the bottom of the sphere, the shader should be able to get something like this :


ray_yaw = x / image_w * 2 * piandray_pitch = (y + image_h/2) / image_h * pior something similar). Then for each ray you just need to find a point where (and if) it intersects your quad (the math should be relatively easy to google).