mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-19 09:42:21 +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
@@ -300,3 +300,17 @@ export function creditDisplayContents(display) {
|
||||
export function materialTexture(material, uniform) {
|
||||
return material?._textures?.[uniform];
|
||||
}
|
||||
|
||||
/**
|
||||
* The texture a custom shader holds for a texture uniform, once it has made
|
||||
* it. A custom shader takes a new texture uniform only as a texture it makes
|
||||
* (and the old one it destroys) on its next update; `drawModels.js` writes a
|
||||
* posed model's part matrices into this texture in place instead, each frame
|
||||
* a part spins.
|
||||
* @param {object} shader Cesium CustomShader.
|
||||
* @param {string} uniform The uniform's name.
|
||||
* @returns {object|undefined} Cesium Texture.
|
||||
*/
|
||||
export function customShaderTexture(shader, uniform) {
|
||||
return shader?._textureManager?.getTexture?.(uniform);
|
||||
}
|
||||
Reference in new issue
Block a user