In my Three.js project, I have a plane inside a sphere that I am applying a shader to in order to achieve certain visual effects on the sphere. To ensure that the plane is always facing the camera, I am using the lookAt
method. However, I have noticed that when the camera gets too close to the sphere, the plane appears to shrink into the sphere. I believe this is due to the perspective nature of the camera, causing its rays to no longer align with the edge of the plane.
For a visual representation of this issue, you can view this image: Perspective clipping
You can also see a demonstration of this problem in action in this JSFiddle: https://jsfiddle.net/k8tc8ex6/1/
While I understand why this issue is happening, I am seeking possible solutions. My goal is to ensure that after rendering, the edge of the plane will always appear to touch the edge of the sphere.
Thank you in advance for any help!