lecodes-cli 2.8.0 → 2.8.1

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/dist/index.js CHANGED
@@ -64,7 +64,7 @@ var package_default;
64
64
  var init_package = __esm(() => {
65
65
  package_default = {
66
66
  name: "lecodes-cli",
67
- version: "2.8.0",
67
+ version: "2.8.1",
68
68
  dependencies: {
69
69
  "@letary/chisel": "^0.15.0",
70
70
  jimp: "^1.6.1",
@@ -90,9 +90,9 @@ var init_package = __esm(() => {
90
90
  },
91
91
  peerDependencies: {
92
92
  "lecodes-design": "^0.11.0",
93
- "lecodes-headless": "^2.8.0",
93
+ "lecodes-headless": "^2.8.1",
94
94
  "lecodes-3d-editor": "^0.9.0",
95
- "lecodes-assets": "^2.8.0",
95
+ "lecodes-assets": "^2.8.1",
96
96
  "heic-decode": "^2.1.0",
97
97
  "marcidb-embedded": "^0.18.0",
98
98
  sharp: "^0.35.2"
@@ -156,7 +156,7 @@ var init_package = __esm(() => {
156
156
  });
157
157
 
158
158
  // ../../sdk/src/version.ts
159
- var SDK_VERSION = "2.8.0";
159
+ var SDK_VERSION = "2.8.1";
160
160
 
161
161
  // src/cli/args.ts
162
162
  var isNegativeNumber = (s) => /^-(\d|\.\d)/.test(s), isValue = (s) => !s.startsWith("-") || isNegativeNumber(s), parseArgv = (argv, booleans = new Set) => {
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "lecodes-cli",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "dependencies": {
5
5
  "@letary/chisel": "^0.15.0",
6
6
  "jimp": "^1.6.1",
7
- "lecodes-sdk": "2.8.0",
7
+ "lecodes-sdk": "2.8.1",
8
8
  "selfsigned": "^2.4.1",
9
9
  "typescript": "^5.8.3"
10
10
  },
11
11
  "devDependencies": {
12
12
  "lecodes-design": "https://storage.yandexcloud.net/le-codes/releases/packages/lecodes-design/lecodes-design-0.11.0.tgz",
13
- "lecodes-headless": "2.8.0",
13
+ "lecodes-headless": "2.8.1",
14
14
  "qrcode-terminal": "^0.12.0",
15
15
  "lecodes-3d-editor": "https://storage.yandexcloud.net/le-codes/releases/packages/lecodes-3d-editor/lecodes-3d-editor-0.9.0.tgz",
16
- "lecodes-assets": "2.8.0",
16
+ "lecodes-assets": "2.8.1",
17
17
  "lecodes-creator-nav": "0.19.0",
18
- "lecodes-gl-lite": "2.8.0",
19
- "lecodes-web-frame": "2.8.0",
20
- "lecodes-web-player": "2.8.0",
21
- "lecodes-web-shared": "2.8.0",
18
+ "lecodes-gl-lite": "2.8.1",
19
+ "lecodes-web-frame": "2.8.1",
20
+ "lecodes-web-player": "2.8.1",
21
+ "lecodes-web-shared": "2.8.1",
22
22
  "lecodes-web-lite": "2.0.7",
23
23
  "heic-decode": "^2.1.0",
24
24
  "marcidb-embedded": "^0.18.0",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "peerDependencies": {
28
28
  "lecodes-design": "^0.11.0",
29
- "lecodes-headless": "^2.8.0",
29
+ "lecodes-headless": "^2.8.1",
30
30
  "lecodes-3d-editor": "^0.9.0",
31
- "lecodes-assets": "^2.8.0",
31
+ "lecodes-assets": "^2.8.1",
32
32
  "heic-decode": "^2.1.0",
33
33
  "marcidb-embedded": "^0.18.0",
34
34
  "sharp": "^0.35.2"
@@ -107,7 +107,9 @@ vertex {
107
107
  }
108
108
 
109
109
  fragment {
110
+ #include "lod-fade.fs"
110
111
  void material(inout MaterialInputs material) {
112
+ if (!lodFadeKeep()) discard; // the LOD cross-fade's screen-door share (lod-fade.fs; 0 = drawn in full)
111
113
  prepareMaterial(material);
112
114
  vec4 base = texture(materialParams_baseColorMap, getUV0()) * materialParams.baseColorFactor;
113
115
  // the per-instance tint and the leaves' world-noise patches (foliage.mat's comments)
@@ -302,6 +302,7 @@ vertex {
302
302
  }
303
303
 
304
304
  fragment {
305
+ #include "lod-fade.fs"
305
306
  // from material() for surfaceShading(): the sun's scalar at this pixel — the wrapped Lambert + the translucency (the
306
307
  // bark's plain Lambert by its share) — and the bark fraction (the shadow map's share: mix(leaf.y, 1, gBark))
307
308
  float gSun = 0.0;
@@ -433,6 +434,7 @@ fragment {
433
434
  }
434
435
 
435
436
  void material(inout MaterialInputs material) {
437
+ if (!lodFadeKeep()) discard; // the LOD cross-fade's screen-door share (lod-fade.fs; 0 = drawn in full)
436
438
  prepareMaterial(material);
437
439
  highp vec2 G = materialParams.impostorGrid;
438
440
  bool isGrid = G.y > 0.0;
@@ -116,6 +116,7 @@ vertex {
116
116
  }
117
117
 
118
118
  fragment {
119
+ #include "lod-fade.fs"
119
120
  vec3 shIrradiance(const vec3 n) {
120
121
  return max(
121
122
  frameUniforms.iblSH[0].xyz
@@ -140,6 +141,7 @@ fragment {
140
141
  float gCavity = 1.0; // the joints' micro-shadow on the lights (material())
141
142
 
142
143
  void material(inout MaterialInputs material) {
144
+ if (!lodFadeKeep()) discard; // the LOD cross-fade's screen-door share (lod-fade.fs; 0 = drawn in full)
143
145
  vec3 tn = vec3(0.0, 0.0, 1.0);
144
146
  if (materialParams.hasNormalMap > 0.5) tn = texture(materialParams_normalMap, getUV0()).xyz * 2.0 - 1.0;
145
147
  // written for matc's sake: an assignment to material.normal is what makes it emit the tangent frame