Facing an issue with the renderer's fisheye effect and raycasting.

I’ve incorporated a raycaster to detect intersections with my red squares and alter the cursor style, but it’s not functioning correctly. The raycasting seems to be using incorrect XY coordinates. Is there a possible solution to address this issue?

Additionally, I’ve applied a fisheye effect to the renderer using effectComposer and a distortion texture.

Since these are postprocessing effects, they don’t affect the 3D world at all. It’s just an effect applied on top of a rendered frame.

Hard to tell without seeing the raycasting code.