Skip to main content

webizen_render/geo_viewport/
mod.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2// Copyright (c) 2026 QualiaDB & Webizen Contributors (adapted from EarthCraft v0.2.0, Nerthus v2.3.1, and RustGIS v0.4.0)
3//! Round 10 (`GEO-S10`) `webizen-render` Planetary-to-Millimeter Geospatial Viewport:
4//! Capped-Angle Polyline & Earcut Tessellation, CDLOD Quadtree & Terrain Skirts,
5//! MVT Style & Curved River/Road Labels, Screen-Space Collision Solver,
6//! Rayleigh/Mie Spherical Atmosphere Limb, Gerstner Water Waves, Hypsometric Contours,
7//! GPU Picking, and Ambient Vegetation/Particle Effects.
8
9pub mod geo_tessellation_capped;
10pub mod mvt_pmtiles_curved_labels;
11pub mod sky_atmosphere_limb;
12pub mod vegetation_effects;
13
14pub use self::geo_tessellation_capped as tessellation;
15pub use self::mvt_pmtiles_curved_labels as curved_labels;
16pub use self::sky_atmosphere_limb as sky_limb;
17
18pub use geo_tessellation_capped::{
19    build_terrain_patch_with_skirts, select_cdlod_quadtree_nodes, tessellate_polygon_earcut,
20    tessellate_polyline_stroke_capped, CdlodNodeSpec, GeoRenderVertex, GeoTessError,
21    StrokeJoinCapStyle,
22};
23pub use mvt_pmtiles_curved_labels::{
24    evaluate_style_zoom_interpolated, layout_glyphs_along_centerline,
25    solve_screen_space_label_collisions, CurvedGlyphQuad, GeoLabelError, LabelCandidate,
26    PlacedLabel, RTreeNode, RTreeScreenIndex, StyleZoomStop, VectorTileLayerStyle, OFFSET_B,
27    OFFSET_BL, OFFSET_BR, OFFSET_CENTER, OFFSET_L, OFFSET_R, OFFSET_T, OFFSET_TL, OFFSET_TR,
28};
29pub use sky_atmosphere_limb::{
30    evaluate_sky_limb_and_aerial_perspective, evaluate_water_wave_and_foam,
31    resolve_gpu_picking_id_aperture, shade_hypsometric_and_contours_into, AtmosphereParams,
32    GeoAtmosphereError, PickingHitRecord, WaterSurfaceSample,
33};
34pub use vegetation_effects::{
35    select_mode, stable_seed, EffectEvent, EffectPool, EffectsMode, GpuParticle, SpawnOutcome,
36    SystemTelemetry, WindField, WorldFrame, DEFAULT_WORLD_SEED, MAX_AMBIENT_PARTICLES,
37    MAX_EFFECT_EVENTS,
38};