Hello @Zic,
Could you please provide an MRE for this?
And possibly provide an example image of what you mean by “a ray”?