Skip to content

Fixed parallax, atmosphere, and skysphere issues with ortho camera#526

Merged
adriengivry merged 2 commits intomainfrom
fix/orthographic_issues
May 16, 2025
Merged

Fixed parallax, atmosphere, and skysphere issues with ortho camera#526
adriengivry merged 2 commits intomainfrom
fix/orthographic_issues

Conversation

@adriengivry
Copy link
Member

Description

A bunch of issues were occurring with the orthographic camera. This PR fixes those issues.

  • Added an option to Material (exposed through the material editor) to skip rendering a material if it isn't supported by a given projection mode (perspective/orthographic).
    • This is now used to skip atmosphere & skysphere rendering when using an orthographic camera
    • Of course if the user is making a 2D game, they'd be better off removing the atmosphere/skysphere actors, but this is useful when switching between modes regularly.
  • Parallax mapping is now forced OFF during the shadow pass.
  • Parallax edge clipping is now disabled when using an orthographic camera.

Related Issue(s)

Fixes #524

Review Guidance

Write here.

Screenshots/GIFs

OvEditor_es9tIwVcUc.mp4

@adriengivry adriengivry self-assigned this May 16, 2025
@adriengivry adriengivry added the Graphics Graphical feature label May 16, 2025
@adriengivry adriengivry marked this pull request as ready for review May 16, 2025 21:11
@adriengivry adriengivry merged commit 64db23f into main May 16, 2025
1 check passed
@adriengivry adriengivry deleted the fix/orthographic_issues branch May 16, 2025 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Graphics Graphical feature

Development

Successfully merging this pull request may close these issues.

Parallax mapping/atmosphere/skysphere bugued in orthographic view

1 participant