mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 10:12:18 +00:00
Sprites for helicopters, ground vehicles, stations and vessel types; history to live without an empty map; model parts in Cesium
Aircraft icons are one size; helicopters turn a three-frame rotor while airborne or moving; ADS-B ground vehicles share one amber sprite and stations/obstacles one mast; vessels get hull sprites by type and one buoy. Going live keeps contacts until the first live answer and replaces them by id; fast playback holds before the loaded positions end and prefetches ahead. Cesium models move their parts from the optional model part state.
This commit is contained in:
1 parent
624c229bc2
commit
7186f720df
97 files changed
+6586
-343
No files matched your search
@@ -12,6 +12,7 @@ import {
|
||||
closeRenderLoopLatch,
|
||||
commandExtents,
|
||||
creditDisplayContents,
|
||||
customShaderTexture,
|
||||
defaultView,
|
||||
globeTilesDrawn,
|
||||
lastRenderTime,
|
||||
@@ -70,6 +71,7 @@ test('every private field the app reaches is still declared by the installed Ces
|
||||
[ENGINE, 'Scene/CreditDisplay.js', '_currentFrameCredits'],
|
||||
[ENGINE, 'Scene/CreditDisplay.js', '_currentCesiumCredit'],
|
||||
[ENGINE, 'Scene/Material.js', '_textures'],
|
||||
[ENGINE, 'Scene/Model/CustomShader.js', '_textureManager'],
|
||||
];
|
||||
const missing = fields.filter(
|
||||
([root, file, field]) =>
|
||||
@@ -281,6 +283,18 @@ test('private Cesium fields are reached only through internals.js', () => {
|
||||
assert.deepEqual([...new Set(offenders)], []);
|
||||
});
|
||||
|
||||
test('customShaderTexture reads the texture a custom shader made for a uniform', () => {
|
||||
const texture = {};
|
||||
const shader = {
|
||||
_textureManager: {
|
||||
getTexture: (name) => (name === 'u_a' ? texture : undefined),
|
||||
},
|
||||
};
|
||||
assert.equal(customShaderTexture(shader, 'u_a'), texture);
|
||||
assert.equal(customShaderTexture(shader, 'u_b'), undefined);
|
||||
assert.equal(customShaderTexture(undefined, 'u_a'), undefined);
|
||||
});
|
||||
|
||||
test('trimGlobeTiles empties the globe cache of what the frame did not draw', () => {
|
||||
const trims = [];
|
||||
trimGlobeTiles({
|
||||
|
||||
Reference in new issue
Block a user