0
0
Fork 0
mirror of https://github.com/ZDoom/raze-gles.git synced 2025-01-30 10:40:39 +00:00

SW: Add FOV support.

This commit is contained in:
Evan Ramos 2020-02-18 23:34:57 -06:00 committed by Christoph Oelckers
parent edccdccfb4
commit 9d11c7dfb1

View file

@ -2162,6 +2162,8 @@ drawscreen(PLAYERp pp)
videoSetCorrectedAspect(); videoSetCorrectedAspect();
} }
renderSetAspect(Blrintf(float(viewingrange) * tanf(r_fov * (fPI/360.f))), yxaspect);
if (FAF_DebugView) if (FAF_DebugView)
videoClearViewableArea(255); videoClearViewableArea(255);