Skip to content

Commit

Permalink
Fix FovX value
Browse files Browse the repository at this point in the history
Adjusts the X fov formula in the Post Effects Mod to make GUIs the proper width
  • Loading branch information
DoobesURU committed Jan 18, 2024
1 parent dfa3bc9 commit bd0b526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion korman/properties/modifiers/game_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def export(self, exporter: Exporter, bo: bpy.types.Object, so: plSceneObject):

post_effect = exporter.mgr.find_create_object(plPostEffectMod, bl=bo)
post_effect.defaultC2W, post_effect.defaultW2C = exporter.gui.convert_post_effect_matrices(camera_matrix)
post_effect.fovX = math.degrees(fov)
post_effect.fovX = math.degrees(fov * 1.15)
post_effect.fovY = math.degrees(fov * (3.0 / 4.0))
post_effect.hither = min((hither, yonder))
post_effect.yon = max((hither, yonder))
Expand Down

0 comments on commit bd0b526

Please sign in to comment.