Currently, I am developing a 3D game in JavaScript using three.js. Everything is going smoothly so far, however, one issue has arisen regarding the skybox not showing up when my camera's near and far distances are set too small.
The problem stems from the fact that the camera attached to my player cannot see as far as the skybox itself. While I could adjust the "near" and "far" attributes of my cameras to encompass the entire size of the game map to always keep the skybox in view, I don't want this approach because it would also display all objects at such great distances.
Is there any way to ensure that the camera captures the skybox without setting a large "far" attribute that reveals distant objects in the game world?
I would greatly appreciate any suggestions or assistance with this dilemma.