mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Turn draped rectangles by an optional rotation, and drape image fills in the Cesium port
A rectangle shape gains an optional rotation: radians counter-clockwise, turning it about its centre in longitude and latitude, as a KML ground overlay turns; an image fill turns with it. A renderer that predates it draws the rectangle unturned. The Cesium draw port passes it as the rectangle's rotation and texture rotation, and now drapes image fills on clamped shapes, each on a ground primitive of its own that owns its material, where it refused them before. Hidden image fills are not built until they show. The stub picks draped rectangles, turned and across the antimeridian, and a conformance check picks a quarter-turned overlay on both renderers. The KML importer still draws its overlays itself.
This commit is contained in:
1 parent
7ad65b2e87
commit
6286bcfb07
9 files changed
+331
-14
No files matched your search
@@ -45,6 +45,11 @@ optional, so a renderer written before it still conforms:
|
||||
- A line item's `depthFailDash` (`{ length, pattern16? }`) dashes the parts
|
||||
behind the surface in `depthFailColor`, as the Draw tool's rubber band is.
|
||||
A renderer that predates it draws those parts solid.
|
||||
- A rectangle shape's `rotation` (radians counter-clockwise) turns it about
|
||||
its centre in longitude and latitude, as a KML ground overlay turns, and
|
||||
its image fill turns with it. The Cesium port drapes image fills too, each
|
||||
on a ground primitive of its own. A renderer that predates it draws the
|
||||
rectangle unturned.
|
||||
|
||||
The renderer itself (`renderer.d.ts`) adds capture, pixel reads, settling,
|
||||
resize, context loss and `destroy`. `common.d.ts` holds the shared shapes
|
||||
|
||||
Reference in new issue
Block a user