Skip to content

Commit

Permalink
Fix liquid post effect colour behaviour in third person view
Browse files Browse the repository at this point in the history
  • Loading branch information
red-001 authored and paramat committed Feb 27, 2018
1 parent c610643 commit e7f1611
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,9 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime, f32 tool_r
// *100.0 helps in large map coordinates
m_cameranode->setTarget(my_cp-intToFloat(m_camera_offset, BS) + 100 * m_camera_direction);

// update the camera position in front-view mode to render blocks behind player
if (m_camera_mode == CAMERA_MODE_THIRD_FRONT)
// update the camera position in third-person mode to render blocks behind player
// and correctly apply liquid post FX.
if (m_camera_mode != CAMERA_MODE_FIRST)
m_camera_position = my_cp;

// Get FOV
Expand Down

0 comments on commit e7f1611

Please sign in to comment.