Skip to content

Commit

Permalink
general polish
Browse files Browse the repository at this point in the history
  • Loading branch information
Reonu committed Mar 28, 2021
1 parent 098b09e commit 4668882
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/game/rendering_graph_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ static s32 obj_is_in_view(struct GraphNodeObject *node, Mat4 matrix) {
// ! @bug The aspect ratio is not accounted for. When the fov value is 45,
// the horizontal effective fov is actually 60 degrees, so you can see objects
// visibly pop in or out at the edge of the screen.
halfFov = ((gCurGraphNodeCamFrustum->fov*aspect) / 2.0f + 1.0f) * 32768.0f / 180.0f + 0.5f;
halfFov = ((gCurGraphNodeCamFrustum->fov * aspect) / 2.0f + 1.0f) * 32768.0f / 180.0f + 0.5f;

hScreenEdge = -matrix[3][2] * sins(halfFov) / coss(halfFov);
// -matrix[3][2] is the depth, which gets multiplied by tan(halfFov) to get
Expand Down
9 changes: 7 additions & 2 deletions text/us/dialogs.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,13 @@ MarioHackJams\n\
There will also be a\n\
website in the future\n\
at mariojams.com\n\
I hope you enjoy the\n\
hack!"))
\n\
\n\
As a final note, this\n\
hack supports multiple\n\
aspects ratios. Pause\n\
The game and change\n\
it by pressing L. Enjoy!"))

DEFINE_DIALOG(DIALOG_007, 1, 7, 30, 200, _("\
The Hot Volcano is\n\
Expand Down

0 comments on commit 4668882

Please sign in to comment.