summaryrefslogtreecommitdiff
path: root/graphics.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-07-15 20:06:47 +0000
committerrodri <rgl@antares-labs.eu>2024-07-15 20:06:47 +0000
commitac662557dc246b04ad1b9fa755a40ed0ec05d386 (patch)
treec858909b501bd3210dc3c13340b9085d0ccc6923 /graphics.h
parent5f10c82aad318fc9091c9bd612e89fda1a77009f (diff)
downloadlibgraphics-ac662557dc246b04ad1b9fa755a40ed0ec05d386.tar.gz
libgraphics-ac662557dc246b04ad1b9fa755a40ed0ec05d386.tar.bz2
libgraphics-ac662557dc246b04ad1b9fa755a40ed0ec05d386.zip
fix stack overflow, skybox fov sensibility and scene duplication.
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°.
Diffstat (limited to 'graphics.h')
-rw-r--r--graphics.h1
1 files changed, 1 insertions, 0 deletions
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));