Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tr2/output: remove global output vars #2537

Merged
merged 5 commits into from
Feb 20, 2025

Conversation

lahm86
Copy link
Collaborator

@lahm86 lahm86 commented Feb 20, 2025

Checklist

  • I have read the coding conventions
  • I have added a changelog entry about what my pull request accomplishes, or it is an internal change
  • I have added a readme entry about my new feature or OG bug fix, or it is a different change

Description

This moves most of TR2's output vars from global to module scope. I've left ones like g_PhdVBuf to be handled later during output merger.

Areas impacted:

  • Object lighting
  • Caustics
  • Underwater tint
  • Bartoli sunset

This replaces the global light adder/divider variables with
getters/setters, similar to TR1.
This makes the object mesh lighting function more readable; there is no
change in actual logic/results.
This moves g_LsVectorView to output module scope in TR2.
This moves the water, wibble and shade effect globals into the TR2
output module.
This moves the sunset variables into TR2's output module.
@lahm86 lahm86 added Internal The invisible stuff TR2 labels Feb 20, 2025
@lahm86 lahm86 self-assigned this Feb 20, 2025
@lahm86 lahm86 requested review from a team as code owners February 20, 2025 14:50
@lahm86 lahm86 requested review from rr-, walkawayy and aredfan and removed request for a team February 20, 2025 14:50
@lahm86 lahm86 merged commit 6cb1a5e into LostArtefacts:develop Feb 20, 2025
8 checks passed
@lahm86 lahm86 deleted the tr2-output-vars branch February 20, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal The invisible stuff TR2
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants