shithub: libgraphics

Download patch

ref: 47bc8df891685fc08689f31c0694bef693709e9b
parent: 92389067d3f18a023743e79ab0165e63a808d7ba
author: rodri <rgl@antares-labs.eu>
date: Fri Jul 25 08:26:16 EDT 2025

camera: update fov constraints to {x: x ∈ (0, π)}

--- a/camera.c
+++ b/camera.c
@@ -113,7 +113,7 @@
 {
 	assert(c->view != nil);
 	if(c->projtype == PERSPECTIVE)
-		assert(c->fov > 0 && c->fov < 360*DEG);
+		assert(c->fov > 0 && c->fov < 180*DEG);
 	assert(c->clip.n > 0 && c->clip.n < c->clip.f);
 }
 
--