Is there a way to adjust the near and far parameters of the camera without having to recreate it?
I've noticed that the camera stops displaying objects when I attempt to make changes to these parameters.
In some cases, it results in a black screen, even with a skybox in place.
Before: https://i.sstatic.net/VRZ0I.jpg
After changing the near parameter: https://i.sstatic.net/g6wjc.png
Here's what the button does:
function changeNear() {
camera.near = 0;
console.log(camera.near)
camera.updateProjectionMatrix()
}
View on Codepen: https://codepen.io/random-jordan/pen/gOeYjpa?editors=1111