mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 08:42:21 +00:00
feat(navara): render CCTV media and calibration handles
Port camera markers, coverage, media planes, volumes and calibration to the Navara renderer. Preserve shared source/media policy and add exact plane picking, owned resource cleanup and idle hold handling. Validate paired keyless dev/preview media and physical drags, native legacy, engine contracts and full CPU/build gates. Record remaining shell, viewshed browser and W2 performance gates; defer Dioxus and plan the transit port.
This commit is contained in:
1 parent
798d6636ab
commit
694616d5c2
22 files changed
+1466
-7
No files matched your search
@@ -62,6 +62,11 @@ const toColor = ([r, g, b, a], alphaScale = 1) =>
|
||||
|
||||
/** The Cesium material type and uniforms of a line (pure, for tests). */
|
||||
export function materialSpec(options, color, alphaScale = 1) {
|
||||
if (options.arrow)
|
||||
return {
|
||||
type: 'PolylineArrow',
|
||||
uniforms: { color: toColor(color, alphaScale) },
|
||||
};
|
||||
const { dash } = options;
|
||||
if (dash?.kind === 'pixels')
|
||||
return {
|
||||
|
||||
@@ -143,3 +143,23 @@ test('a pick of a line primitive names the line', () => {
|
||||
});
|
||||
assert.equal(identify({ primitive: {}, id: 'o' }), null);
|
||||
});
|
||||
|
||||
test('arrow lines retain the native arrow material in both depth passes', () => {
|
||||
const { factories, made } = fakePrimitives();
|
||||
const { lines, destroy } = createCesiumLines(createFakeViewer(), {
|
||||
factories,
|
||||
});
|
||||
lines
|
||||
.createLine({
|
||||
id: 'arrow',
|
||||
widthPx: 8,
|
||||
color: [1, 0, 0, 1],
|
||||
arrow: true,
|
||||
depthFailAlpha: 0.45,
|
||||
})
|
||||
.setPositions(points);
|
||||
assert.equal(made[0].appearance.material.type, 'PolylineArrow');
|
||||
assert.equal(made[0].depthFailAppearance.material.type, 'PolylineArrow');
|
||||
assert.equal(made[0].depthFailAppearance.material.uniforms.color.alpha, 0.45);
|
||||
destroy();
|
||||
});
|
||||
Reference in new issue
Block a user