Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Heuristics for setup of near/far planes of camera
Based on terrain's active nodes, this should configure frustum depth long enough not to clip away anything that should stay visible and at the same time make good use of depth buffer (range not too large)
- Loading branch information
Showing
with
64 additions
and 0 deletions.
- +12 −0 src/3d/cameracontroller.cpp
- +3 −0 src/3d/chunks/chunkedentity.h
- +49 −0 src/3d/scene.cpp