DEADSOFTWARE

gl: implement camera look up/down
authorDeaDDooMER <deaddoomer@deadsoftware.ru>
Tue, 26 Jul 2022 22:09:13 +0000 (01:09 +0300)
committerDeaDDooMER <deaddoomer@deadsoftware.ru>
Fri, 9 Jun 2023 09:03:39 +0000 (12:03 +0300)
src/game/renders/opengl/r_common.pas

index 448458903b26b9061ac04e097d32f2e764fa2fb9..99f46d1468c3ef3e5a2d39897178b750b9e2c48c 100644 (file)
@@ -117,8 +117,8 @@ implementation
 {$ENDIF}
     if p <> nil then
     begin
-      // TODO look up/down
       r_Common_GetPlayerPos(p, x, y);
+      y := y - nlerp(p.IncCamOld, p.IncCam, gLerpFactor);
       if center then
       begin
         x := x + p.obj.rect.width div 2;