ldr 0.33.10 → 0.33.12
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 +3 -2
- package/dist/cli.js +11 -11
- package/dist/cull.d.ts +11 -7
- package/dist/index.js +153 -88
- package/dist/load-worker.gen.d.ts +1 -1
- package/dist/node/index.js +161 -96
- package/dist/render.d.ts +4 -1
- package/dist/scene.d.ts +3 -0
- package/package.json +1 -1
package/dist/render.d.ts
CHANGED
|
@@ -23,8 +23,11 @@ export type LdrParams = {
|
|
|
23
23
|
lodPx?: number;
|
|
24
24
|
/** LOD: draw edge lines only where one stud (20 LDU) spans at least this many pixels (default 0.5; 0 = always). */
|
|
25
25
|
lodEdgePx?: number;
|
|
26
|
-
/** LOD: draw only edge segments at least this many pixels long on screen (default 0.
|
|
26
|
+
/** LOD: draw only edge segments at least this many pixels long on screen (default 0.4; 0 = all). */
|
|
27
27
|
lodEdgeMinPx?: number;
|
|
28
|
+
/** LOD: a part draws at most `lodEdgeCap` x d^2 of its edge segments (its longest ones), d = its bounding diameter in pixels
|
|
29
|
+
* (default 0.75; 0 = no cap). Round 72. */
|
|
30
|
+
lodEdgeCap?: number;
|
|
28
31
|
/** LOD: skip upright parts' undersides while the camera is above their bottom faces and studs are < 4 px (default true). */
|
|
29
32
|
lodUnder?: boolean;
|
|
30
33
|
/** Global build step per instance (same order as `insts`). Enables `setStep`: steps become instance-buffer compaction with
|
package/dist/scene.d.ts
CHANGED
|
@@ -49,6 +49,9 @@ export interface LdrObjectOptions {
|
|
|
49
49
|
* (Round 62; was 0.15); 0 = every segment. A shorter segment still darkens a whole pixel, so dense far views drawn with every
|
|
50
50
|
* segment turn almost black, and they get lighter as this grows (falcon-100k overview: 2.6% of pixels vs every edge, 2.2x faster). */
|
|
51
51
|
lodEdgeMinPx?: number;
|
|
52
|
+
/** LOD: a part draws at most `lodEdgeCap` x d^2 of its edge segments, its longest first, d = its size on screen in pixels (Round 72).
|
|
53
|
+
* A small far part can't show more line pixels than it covers. Default 0.75; 0 = no cap. */
|
|
54
|
+
lodEdgeCap?: number;
|
|
52
55
|
/** LOD: skip undersides that can't be seen: while the camera is behind every bottom face of a cluster's (same-orientation) parts and
|
|
53
56
|
* studs are under 4 px, or where the body is drawn as its closed bounding box. Default true. */
|
|
54
57
|
lodUnder?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ldr",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.12",
|
|
4
4
|
"description": "High-performance LEGO (LDraw) rendering for three.js: instanced parts packs, hidden stud/tube culling, low-detail studs, indexed edges, build steps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Evan Bacon",
|