mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 07:42:23 +00:00
Register the Navara style, bloom and cloud cover modules in the package boundaries and keep VisualEffects free of the globe contract
This commit is contained in:
1 parent
89339cdd96
commit
c2d7a6dbb0
2 files changed
+20
-5
No files matched your search
@@ -3595,7 +3595,11 @@
|
|||||||
"src/globe/navara/look.js",
|
"src/globe/navara/look.js",
|
||||||
"src/globe/navara/maps.js",
|
"src/globe/navara/maps.js",
|
||||||
"src/globe/navara/sharpen.js",
|
"src/globe/navara/sharpen.js",
|
||||||
"src/annotations/drawInputNavara.js",
|
"src/globe/navara/stylePass.js",
|
||||||
|
"src/globe/navara/stylePasses.js",
|
||||||
|
"src/globe/navara/bloom.js",
|
||||||
|
"src/globe/navara/bloomSettings.js",
|
||||||
|
"src/globe/navara/cockpitClouds.js",
|
||||||
"src/globe/navara/surface.js",
|
"src/globe/navara/surface.js",
|
||||||
"src/globe/navara/viewOptions.js",
|
"src/globe/navara/viewOptions.js",
|
||||||
"src/app/engineChoice.js",
|
"src/app/engineChoice.js",
|
||||||
|
|||||||
+15
-4
@@ -1,5 +1,4 @@
|
|||||||
import { PostProcessStage } from 'cesium';
|
import { PostProcessStage } from 'cesium';
|
||||||
import { engineCapabilities } from '../globe/contract.js';
|
|
||||||
import {
|
import {
|
||||||
bloomStrengthFromIntensity,
|
bloomStrengthFromIntensity,
|
||||||
clampBloomIntensity,
|
clampBloomIntensity,
|
||||||
@@ -77,11 +76,23 @@ export class VisualEffects {
|
|||||||
typeof engine?.render?.setSharpen === 'function' ? engine.render : null;
|
typeof engine?.render?.setSharpen === 'function' ? engine.render : null;
|
||||||
// Without a viewer, an engine that draws the styles itself
|
// Without a viewer, an engine that draws the styles itself
|
||||||
// (render.setStyle) gets them through stand-in stages (initStyles).
|
// (render.setStyle) gets them through stand-in stages (initStyles).
|
||||||
const capabilities = engineCapabilities(engine);
|
// (The visualStyles and bloom capabilities of src/globe/contract.js
|
||||||
|
// engineCapabilities, read by member: this package stays engine-free.)
|
||||||
|
const render = engine?.render;
|
||||||
this.engineStyles =
|
this.engineStyles =
|
||||||
!viewer && capabilities.visualStyles ? engine.render : null;
|
!viewer &&
|
||||||
|
Array.isArray(render?.visualStyles) &&
|
||||||
|
typeof render.setStyle === 'function' &&
|
||||||
|
typeof render.style === 'function'
|
||||||
|
? render
|
||||||
|
: null;
|
||||||
// Likewise the bloom (render.setBloom) for Cesium's bloom stage.
|
// Likewise the bloom (render.setBloom) for Cesium's bloom stage.
|
||||||
this.engineBloom = !viewer && capabilities.bloom ? engine.render : null;
|
this.engineBloom =
|
||||||
|
!viewer &&
|
||||||
|
typeof render?.setBloom === 'function' &&
|
||||||
|
typeof render.bloom === 'function'
|
||||||
|
? render
|
||||||
|
: null;
|
||||||
this.requestRender = requestRender;
|
this.requestRender = requestRender;
|
||||||
this.holdRender = holdRender;
|
this.holdRender = holdRender;
|
||||||
this.releaseRender = releaseRender;
|
this.releaseRender = releaseRender;
|
||||||
|
|||||||
Reference in new issue
Block a user