mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
Release God's Eye View as open source
This commit is contained in:
1 parent
a5aaea7e16
commit
880a672b5e
433 files changed
+219893
-23
No files matched your search
@@ -0,0 +1,13 @@
|
||||
/** Cockpit brackets stay legible without dominating the first-person view. */
|
||||
export const COCKPIT_BRACKET_OPACITY = 0.45;
|
||||
|
||||
/**
|
||||
* Resolve the bracket-only opacity multiplier for the current presentation.
|
||||
* Detection callouts and user tuning are intentionally unaffected.
|
||||
* @param {boolean} cockpitActive - Whether Cockpit view owns the viewport.
|
||||
* @returns {number} Bracket stroke opacity multiplier.
|
||||
*/
|
||||
export function detectionBracketOpacity(cockpitActive) {
|
||||
return cockpitActive === true ? COCKPIT_BRACKET_OPACITY : 1;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user