mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Make quality settings detail only and fold ctrl-wheel zoom into the camera's zoom inputs
Quality no longer switches clouds or water (their ports are gone) and its atmosphere and post-processing settings are low or high detail; whether the sky or a pass shows stays with globe.sky and effects. The separate input.ctrlWheelZoom switch is gone: 'ctrlWheel' in the camera's zoomInputs also relays trackpad pinches, which the application turns on.
This commit is contained in:
1 parent
46cdeba7fa
commit
7a376ebefc
15 files changed
+87
-114
No files matched your search
Vendored
+5
-1
@@ -195,7 +195,11 @@ export interface CameraControls {
|
||||
zoomFactor: number;
|
||||
/** Pitch the user may tilt between, radians (−π/2 straight down). */
|
||||
pitchRange: [min: number, max: number];
|
||||
/** Input bindings that zoom. */
|
||||
/**
|
||||
* Input bindings that zoom. `ctrlWheel`: Ctrl+wheel, and a trackpad
|
||||
* pinch (which browsers send as Ctrl+wheel), zoom the globe rather than
|
||||
* the page.
|
||||
*/
|
||||
zoomInputs: Array<'wheel' | 'pinch' | 'rightDrag' | 'ctrlWheel'>;
|
||||
}
|
||||
|
||||
|
||||
@@ -68,9 +68,7 @@ export const QUALITY_KEYS = Object.freeze([
|
||||
'terrainDetail',
|
||||
'imageryDetail',
|
||||
'tilesCacheBytes',
|
||||
'clouds',
|
||||
'shadows',
|
||||
'water',
|
||||
'atmosphere',
|
||||
'milkyWay',
|
||||
'particles',
|
||||
@@ -237,7 +235,6 @@ export const PORTS = deepFreeze({
|
||||
'behaviours.dblclickFollow',
|
||||
'behaviours.dblclickFollow.enabled',
|
||||
'behaviours.dblclickFollow.suppress',
|
||||
'ctrlWheelZoom',
|
||||
),
|
||||
),
|
||||
effects: Object.fromEntries([
|
||||
|
||||
Vendored
-2
@@ -121,6 +121,4 @@ export interface InputPort {
|
||||
readonly dblclickFollow: StockBehaviour;
|
||||
readonly [name: string]: StockBehaviour;
|
||||
};
|
||||
/** Ctrl+wheel zooms (rather than the page). */
|
||||
ctrlWheelZoom: boolean;
|
||||
}
|
||||
Vendored
+8
-5
@@ -1,7 +1,9 @@
|
||||
/**
|
||||
* Adaptive quality. A governor above the contract decides a level; each
|
||||
* renderer reports its frame signals, lists the settings it supports and
|
||||
* applies them. Nothing here is engine-specific.
|
||||
* applies them. Nothing here is engine-specific. Quality sets only how
|
||||
* detailed a thing is drawn; switching it on or off is the port's that
|
||||
* draws it (`globe.sky`, `effects`).
|
||||
*/
|
||||
import type { Off } from './common';
|
||||
|
||||
@@ -14,15 +16,16 @@ export interface QualitySettings {
|
||||
terrainDetail: number;
|
||||
imageryDetail: number;
|
||||
tilesCacheBytes: number;
|
||||
clouds: 'off' | 'low' | 'medium' | 'high' | 'ultra';
|
||||
shadows: boolean;
|
||||
water: 'off' | 'low' | 'high';
|
||||
atmosphere: 'off' | 'low' | 'high';
|
||||
/** Detail of the atmosphere; whether it shows is `globe.sky`'s. */
|
||||
atmosphere: 'low' | 'high';
|
||||
/** Detail of the Milky Way; its brightness is `globe.sky`'s. */
|
||||
milkyWay: 'low' | 'high';
|
||||
/** 0..1 density of particle fields (wind, weather). */
|
||||
particles: number;
|
||||
models: { maxInstances: number; maxDistance: number };
|
||||
postFx: { bloom: boolean; sharpen: boolean; style: 'low' | 'high' };
|
||||
/** Detail of the post-processing passes; bloom and sharpen are switched in `effects`. */
|
||||
postFx: 'low' | 'high';
|
||||
/** Updates per second of a screen modulation sweep. */
|
||||
sonarCadenceHz: number;
|
||||
targetFps: number;
|
||||
|
||||
Reference in new issue
Block a user