cesium-to-three 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # cesium-to-three
2
2
 
3
- 把 **Cesium 的 GPU Z-fail Stencil Shadow Volume 贴地算法** 移植到 Three.js + 3d-tiles-renderer 的最小可运行 demo。
3
+ 把 **Cesium 的 GPU Z-fail Stencil Shadow Volume 贴地算法** 移植到 Three.js + um-3d-tiles-renderer 的最小可运行 demo。
4
4
 
5
5
  > 这是 PlotEngine v3 项目的"金标准"参考实现 —— 一个红色矩形通过 stencil shadow volume 算法精确贴在真实地形上。所有 stencil 算法的关键技术细节(VS/FS depth-clamp 协议、GPU 动态挤出、`setLocked` + 原生 `gl.stencilOpSeparate`、cache 脏化)都完整实现且可用 Spector.js 抓帧验证。
6
6
 
7
7
  ## 这个 demo 做什么
8
8
 
9
- 在 3d-tiles-renderer 加载的 **Cesium World Terrain**(真实地形)上,贴一个红色透明矩形(默认 20km × 20km,中心在上海陆家嘴)。无论你怎么转地球、缩放、倾斜相机,这个红色矩形都精确贴在地形表面上 —— **山脊不漏、低谷不浮**。
9
+ um-3d-tiles-renderer 加载的 **Cesium World Terrain**(真实地形)上,贴一个红色透明矩形(默认 20km × 20km,中心在上海陆家嘴)。无论你怎么转地球、缩放、倾斜相机,这个红色矩形都精确贴在地形表面上 —— **山脊不漏、低谷不浮**。
10
10
 
11
11
  ## 快速开始
12
12
 
@@ -194,7 +194,7 @@ __demo.polygon.group.children[1].material.stencilFunc // 517 (NotEqualStencilF
194
194
  | 包 | 版本 | 用途 |
195
195
  |---|---|---|
196
196
  | `three` | `^0.169.0` | WebGL2 + GLSL ES 3.00 |
197
- | `3d-tiles-renderer` | `^0.4.24` | TilesRenderer + Ellipsoid + GlobeControls + CesiumIonAuthPlugin |
197
+ | `um-3d-tiles-renderer` | `^0.4.48` | TilesRenderer + Ellipsoid + GlobeControls + CesiumIonAuthPlugin |
198
198
  | `vite` | `^5.0.0` | 开发服务器与构建 |
199
199
  | `typescript` | `~5.3.0` | 类型检查 |
200
200
 
package/dist/ground.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r, a, b as t, c as o, d as n, e as m, f as C, g as L, h as g, i as u, L as _, j as l, k as D, M as R, l as A, m as E, n as I, o as p, p as d, q as M, r as N, s as T, t as P, u as G, v as U, w as h, x as F, y as c, z as v } from "./text-primitive-Ci0sbuh1.js";
1
+ import { C as r, a, b as t, c as o, d as n, e as m, f as C, g as L, h as g, i as u, L as _, j as l, k as D, M as R, l as A, m as E, n as I, o as p, p as d, q as M, r as N, s as T, t as P, u as G, v as U, w as h, x as F, y as c, z as v } from "./text-primitive-CDcI6bOz.js";
2
2
  import "three";
3
3
  export {
4
4
  r as CESIUM_GLOBE_MINIMUM_ALTITUDE,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r, a, b as t, c as o, d as n, e as m, f as C, g as L, h as g, i as u, L as _, j as l, k as D, M as R, l as A, m as E, n as I, o as p, p as d, q as M, r as N, s as T, t as P, u as G, v as U, w as h, x as F, y as c, z as v } from "./text-primitive-Ci0sbuh1.js";
1
+ import { C as r, a, b as t, c as o, d as n, e as m, f as C, g as L, h as g, i as u, L as _, j as l, k as D, M as R, l as A, m as E, n as I, o as p, p as d, q as M, r as N, s as T, t as P, u as G, v as U, w as h, x as F, y as c, z as v } from "./text-primitive-CDcI6bOz.js";
2
2
  import "three";
3
3
  export {
4
4
  r as CESIUM_GLOBE_MINIMUM_ALTITUDE,
@@ -1911,7 +1911,7 @@ class Vc {
1911
1911
  *
1912
1912
  * @param renderer 当前 Three 渲染器。
1913
1913
  * @param camera 当前相机。pack-depth 材质需要它逐帧写入 Cesium 兼容的 LOG_DEPTH。
1914
- * @param sourceScene 可选外部场景,用于 3d-tiles-renderer 内容。
1914
+ * @param sourceScene 可选外部场景,用于 um-3d-tiles-renderer 内容。
1915
1915
  * @param depthRoot 渲染 sourceScene 时需要单独保留的可选根对象。
1916
1916
  */
1917
1917
  render(e, t, n = this.scene, r) {
@@ -60063,4 +60063,4 @@ export {
60063
60063
  Xc as y,
60064
60064
  $c as z
60065
60065
  };
60066
- //# sourceMappingURL=text-primitive-Ci0sbuh1.js.map
60066
+ //# sourceMappingURL=text-primitive-CDcI6bOz.js.map