diff options
author | red-001 <red-001@outlook.ie> | 2018-02-25 22:52:05 +0000 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:32:00 +0200 |
commit | c40f535df83ab8d10b0f9cc93c2531ac79036dd0 (patch) | |
tree | 6c2d3267067ce574ee0411706ed4138594f90e41 | |
parent | 79fde0dd52bbdeb705576a285c0da2519f948eb7 (diff) | |
download | minetest-c40f535df83ab8d10b0f9cc93c2531ac79036dd0.tar.gz minetest-c40f535df83ab8d10b0f9cc93c2531ac79036dd0.tar.bz2 minetest-c40f535df83ab8d10b0f9cc93c2531ac79036dd0.zip |
Fix liquid post effect colour behaviour in third person view
-rw-r--r-- | src/camera.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/camera.cpp b/src/camera.cpp index 6957508cc..aa1baf957 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -386,8 +386,9 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime, // *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 |