From ac662557dc246b04ad1b9fa755a40ed0ec05d386 Mon Sep 17 00:00:00 2001 From: rodri Date: Mon, 15 Jul 2024 20:06:47 +0000 Subject: fix stack overflow, skybox fov sensibility and scene duplication. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit putting the duplicate camera in a local variable turned out to be a bad idea. bring the dynamic version back. the skybox rendering was affected by the camera fov, which made it look like it was not really at infinity, so set it always to 90°. --- graphics.h | 1 + 1 file changed, 1 insertion(+) (limited to 'graphics.h') diff --git a/graphics.h b/graphics.h index 511564e..a0e1c3a 100644 --- a/graphics.h +++ b/graphics.h @@ -360,6 +360,7 @@ Color neartexsampler(Texture*, Point2); Color bilitexsampler(Texture*, Point2); Color sampletexture(Texture*, Point2, Color(*)(Texture*, Point2)); Cubemap *readcubemap(char*[6]); +Cubemap *dupcubemap(Cubemap*); void freecubemap(Cubemap*); Color samplecubemap(Cubemap*, Point3, Color(*)(Texture*, Point2)); -- cgit v1.2.3