Skip to content

Commit 9327e7a

Browse files
committed
fix unrelated but with ground plane and upDir in ortho view
1 parent 8930517 commit 9327e7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/render/ground_plane.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ void GroundPlane::draw(bool isRedraw) {
252252
}
253253
case ProjectionMode::Orthographic: {
254254
glm::vec4 lookDir = glm::vec4(0, 0, 1, 0) * viewMat;
255-
groundPlaneProgram->setUniform("u_cameraHeight", (lookDir.y * state::lengthScale) + groundHeight);
255+
groundPlaneProgram->setUniform("u_cameraHeight", (lookDir[iP] * state::lengthScale) + groundHeight);
256256
break;
257257
}
258258
}

0 commit comments

Comments
 (0)