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

**URL:** <https://discourse.threejs.org/t/facing-an-issue-with-the-renderers-fisheye-effect-and-raycasting/58645>\
**Category:** Questions\
**Created:** [November 28, 2023, 12:13pm UTC](https://discourse.threejs.org/t/facing-an-issue-with-the-renderers-fisheye-effect-and-raycasting/58645 "2023-11-28T12:13:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhilen111](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/zhilen111/32/38446_2.png) [@zhilen111](https://discourse.threejs.org/u/zhilen111)\
**Post date:** [November 28, 2023, 12:13pm UTC](https://discourse.threejs.org/t/facing-an-issue-with-the-renderers-fisheye-effect-and-raycasting/58645/1 "2023-11-28T12:13:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [November 28, 2023, 2:56pm UTC](https://discourse.threejs.org/t/facing-an-issue-with-the-renderers-fisheye-effect-and-raycasting/58645/2 "2023-11-28T14:56:11Z")

</div>

> [@zhilen111](#):
>
> 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.

> [@zhilen111](#):
>
> Is there a possible solution to address this issue?

Hard to tell without seeing the raycasting code.
