The view: near and far go by the distance (no more vanishing far out or cutting close up), a coarser grid out to the horizon; outline and lines over the model agree while a touch turns the view (worked out once, just before drawing); outlines from a cached edge list, points tried for sight only when drawn

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Nexoniarz 2026-10-21 00:45:17 +02:00
commit f1f7a3fecc
3 changed files with 120 additions and 77 deletions

View file

@ -22,6 +22,7 @@ struct Camera {
float roll = 0.0f; // degrees, positive tilts right
float fovY = 74.0f; // degrees
glm::vec2 shift{0.0f}; // where the picture's middle sits on the screen (-1..1 across, down): a view beside panels
float zNear = 2.0f, zFar = 16384.0f; // what's nearer or further isn't drawn (units)
};
// Baked light for a moving model (from the map's probes): ambient cube + sun visibility.