Skip to content

Commit e7f1611

Browse files
red-001paramat
authored andcommittedFeb 27, 2018
Fix liquid post effect colour behaviour in third person view
1 parent c610643 commit e7f1611

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/camera.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,9 @@ void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime, f32 tool_r
446446
// *100.0 helps in large map coordinates
447447
m_cameranode->setTarget(my_cp-intToFloat(m_camera_offset, BS) + 100 * m_camera_direction);
448448

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

453454
// Get FOV

0 commit comments

Comments
 (0)
Please sign in to comment.