clipped by skybox

A problem is recorded here: the model is clipped by the sky box

Generally speaking, the skybox is on the last layer. Recently, a skybox clipping problem was discovered.

insert image description here
insert image description here

origin

Recently, I am working on a planet-themed game, and some scene content needs to be placed very far away.
Then, in front of the previous project, some content will be very close to the camera, so the near section cannot be set to the default 0.3, so that objects that are too close will be cropped.
It is said that if you set the near section to 0, the system will set it to 0.01 by default. At this time, the problem arises...

Solution

If placed too far away, it will be cropped.
After research, it is found that it is usually changed to 0 because I am afraid that the near section of the camera will be cut to close objects
insert image description here
. It's back to normal, and there will be no problem with far models being clipped by the skybox.

Guess you like

Origin blog.csdn.net/ww1351646544/article/details/128298487