@holoscript/core 8.0.1 → 8.0.3
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/bin/holoscript.cjs +0 -0
- package/dist/{GLTFPipeline-P3WMNYCN.js → GLTFPipeline-PN3DN6FO.js} +5 -5
- package/dist/{GLTFPipeline-N6B6PJ6G.cjs → GLTFPipeline-W45UOCNY.cjs} +9 -9
- package/dist/HoloScriptRuntime-ACDFKVVH.js +10 -0
- package/dist/{HoloScriptRuntime-VJ374RER.cjs → HoloScriptRuntime-ON2OQVEF.cjs} +5 -5
- package/dist/{chunk-CR7XRXRN.cjs → chunk-33AZRKKQ.cjs} +5 -5
- package/dist/{chunk-BGY3SDG3.js → chunk-37ZNYWWW.js} +24 -3
- package/dist/{chunk-X3UVCWNL.cjs → chunk-5PLWAEQQ.cjs} +8 -8
- package/dist/{chunk-MQWAT42R.cjs → chunk-6DO5IZ5N.cjs} +41 -44
- package/dist/{chunk-K574J76X.cjs → chunk-6S5VS7BF.cjs} +3 -3
- package/dist/{chunk-YVOAF4ML.js → chunk-DHXLCJJN.js} +3 -3
- package/dist/{chunk-HR2OSYVQ.js → chunk-DXWOTOUK.js} +3 -3
- package/dist/{chunk-KHDZJE5D.cjs → chunk-ELEHNDDS.cjs} +5 -5
- package/dist/{chunk-SMIWS6DE.cjs → chunk-IELX2OKI.js} +118 -7
- package/dist/{chunk-7T25IEZ2.js → chunk-JYTTPNKK.js} +3 -3
- package/dist/{chunk-FL33V6U7.js → chunk-MVPBWHAC.js} +3 -3
- package/dist/{chunk-JIBL5LRK.js → chunk-QACVP4PM.js} +24 -7
- package/dist/{chunk-4GU5GCIY.js → chunk-QRPRIJ2W.js} +145 -4
- package/dist/{chunk-J52VSAQ7.js → chunk-QSCGZ4DW.js} +3 -3
- package/dist/{chunk-E6XXE66V.js → chunk-RLLNOI3T.js} +3 -3
- package/dist/{chunk-AOVGZ25K.cjs → chunk-SMRVK6BI.cjs} +5 -5
- package/dist/{chunk-7V4JI5TB.cjs → chunk-U5GLSXSD.cjs} +6 -6
- package/dist/{chunk-6Q7RC2MK.cjs → chunk-UPXIY52O.cjs} +147 -3
- package/dist/{chunk-L5LKKENW.cjs → chunk-UWXE23BT.cjs} +4 -4
- package/dist/{chunk-ALC6K7GL.cjs → chunk-VDDJUO4G.cjs} +28 -7
- package/dist/{chunk-CSD27UNQ.js → chunk-XF3AATZJ.js} +5 -5
- package/dist/{chunk-RARB3MBR.js → chunk-YDPEHCCI.cjs} +127 -3
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/index.cjs +41 -41
- package/dist/compiler/index.js +7 -7
- package/dist/compiler/r3f.cjs +8 -8
- package/dist/compiler/r3f.js +3 -3
- package/dist/debugger.cjs +5 -5
- package/dist/debugger.js +3 -3
- package/dist/index.cjs +305 -397
- package/dist/index.js +12 -104
- package/dist/reconstruction/index.cjs +31 -31
- package/dist/reconstruction/index.js +2 -2
- package/dist/runtime.cjs +150 -293
- package/dist/runtime.js +82 -23
- package/dist/traits/botanical-lotus.cjs +60 -44
- package/dist/traits/botanical-lotus.js +2 -2
- package/dist/traits/index.cjs +481 -465
- package/dist/traits/index.js +5 -5
- package/package.json +66 -65
- package/LICENSE +0 -21
- package/dist/HoloScriptRuntime-CBYJX3LZ.js +0 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HoloScriptRuntime } from './chunk-
|
|
1
|
+
import { HoloScriptRuntime } from './chunk-QACVP4PM.js';
|
|
2
2
|
import { HoloScriptCodeParser } from './chunk-URG2SJLK.js';
|
|
3
3
|
|
|
4
4
|
// src/HoloScriptDebugger.ts
|
|
@@ -417,5 +417,5 @@ function createDebugger(runtime) {
|
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
export { HoloScriptDebugger, createDebugger };
|
|
420
|
-
//# sourceMappingURL=chunk-
|
|
421
|
-
//# sourceMappingURL=chunk-
|
|
420
|
+
//# sourceMappingURL=chunk-MVPBWHAC.js.map
|
|
421
|
+
//# sourceMappingURL=chunk-MVPBWHAC.js.map
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
import { ReactiveState, ExpressionEvaluator, createState } from './chunk-XL6INWKT.js';
|
|
2
|
-
import { getSharedEventBus, telemetry } from './chunk-
|
|
2
|
+
import { lazyPeerSymbol, definePeerNamespace, getSharedEventBus, telemetry } from './chunk-IELX2OKI.js';
|
|
3
3
|
import { HoloScriptCodeParser } from './chunk-URG2SJLK.js';
|
|
4
4
|
import { JEPAPredictor, jepObjectiveHandler, mitosisHandler, orbitalHandler } from './chunk-H652NHX5.js';
|
|
5
5
|
import { logger } from './chunk-PHENW4MQ.js';
|
|
6
6
|
import { init_safeJsonParse, readJson } from './chunk-VVKVQZI6.js';
|
|
7
7
|
import { WebSocketServer, WebSocket } from 'ws';
|
|
8
|
-
import { AttentionEngine, TimeManager } from '@holoscript/engine/orbital';
|
|
9
|
-
import { StateSynchronizer } from '@holoscript/mesh';
|
|
10
|
-
import * as engineRuntime from '@holoscript/engine/runtime';
|
|
11
|
-
import { MemoryConsolidator } from '@holoscript/framework/learning';
|
|
12
8
|
|
|
13
9
|
// src/HoloScriptRuntime.ts
|
|
14
10
|
init_safeJsonParse();
|
|
@@ -2391,6 +2387,12 @@ async function evaluateHoloExpression(expr, scopeOverride, ctx) {
|
|
|
2391
2387
|
return void 0;
|
|
2392
2388
|
}
|
|
2393
2389
|
}
|
|
2390
|
+
|
|
2391
|
+
// src/HoloScriptAgentRuntime.ts
|
|
2392
|
+
var MemoryConsolidator = lazyPeerSymbol(
|
|
2393
|
+
"@holoscript/framework/learning",
|
|
2394
|
+
"MemoryConsolidator"
|
|
2395
|
+
);
|
|
2394
2396
|
function stringProperty(value) {
|
|
2395
2397
|
return typeof value === "string" ? value : void 0;
|
|
2396
2398
|
}
|
|
@@ -3006,6 +3008,21 @@ var ExtensionRegistry = class {
|
|
|
3006
3008
|
};
|
|
3007
3009
|
|
|
3008
3010
|
// src/HoloScriptRuntime.ts
|
|
3011
|
+
var TimeManager = lazyPeerSymbol(
|
|
3012
|
+
"@holoscript/engine/orbital",
|
|
3013
|
+
"TimeManager"
|
|
3014
|
+
);
|
|
3015
|
+
var AttentionEngine = lazyPeerSymbol(
|
|
3016
|
+
"@holoscript/engine/orbital",
|
|
3017
|
+
"AttentionEngine"
|
|
3018
|
+
);
|
|
3019
|
+
var StateSynchronizer = lazyPeerSymbol(
|
|
3020
|
+
"@holoscript/mesh",
|
|
3021
|
+
"StateSynchronizer"
|
|
3022
|
+
);
|
|
3023
|
+
var engineRuntime = definePeerNamespace(
|
|
3024
|
+
"@holoscript/engine/runtime"
|
|
3025
|
+
);
|
|
3009
3026
|
var RUNTIME_SECURITY_LIMITS = {
|
|
3010
3027
|
maxExecutionDepth: 50,
|
|
3011
3028
|
maxTotalNodes: 1e3,
|
|
@@ -4283,5 +4300,5 @@ var HoloScriptRuntime = class {
|
|
|
4283
4300
|
};
|
|
4284
4301
|
|
|
4285
4302
|
export { HoloScriptAgentRuntime, HoloScriptRuntime };
|
|
4286
|
-
//# sourceMappingURL=chunk-
|
|
4287
|
-
//# sourceMappingURL=chunk-
|
|
4303
|
+
//# sourceMappingURL=chunk-QACVP4PM.js.map
|
|
4304
|
+
//# sourceMappingURL=chunk-QACVP4PM.js.map
|
|
@@ -521,6 +521,137 @@ function generateBotanicalRoughnessMap(opts) {
|
|
|
521
521
|
}
|
|
522
522
|
return { width: size, height: size, data };
|
|
523
523
|
}
|
|
524
|
+
function lotusSmoothstep(edge0, edge1, x) {
|
|
525
|
+
const t = Math.min(1, Math.max(0, (x - edge0) / (edge1 - edge0)));
|
|
526
|
+
return t * t * (3 - 2 * t);
|
|
527
|
+
}
|
|
528
|
+
function lotusPetalHalfWidthFraction(v) {
|
|
529
|
+
const broad = Math.sin(Math.PI * Math.pow(v, 0.8));
|
|
530
|
+
const tipPoint = 1 - lotusSmoothstep(0.82, 1, v) * 0.55;
|
|
531
|
+
return Math.max(0, broad * tipPoint);
|
|
532
|
+
}
|
|
533
|
+
function buildLotusPetalGeometryData(params = {}) {
|
|
534
|
+
const P = { ...DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS, ...params };
|
|
535
|
+
const nu = Math.max(2, Math.floor(P.segmentsU));
|
|
536
|
+
const nv = Math.max(2, Math.floor(P.segmentsV));
|
|
537
|
+
const cols = nu + 1;
|
|
538
|
+
const rows = nv + 1;
|
|
539
|
+
const vertexCount = cols * rows;
|
|
540
|
+
const halfWidthMax = P.width * 0.5;
|
|
541
|
+
const positions = new Float32Array(vertexCount * 3);
|
|
542
|
+
const normals = new Float32Array(vertexCount * 3);
|
|
543
|
+
const petalUv = new Float32Array(vertexCount * 2);
|
|
544
|
+
const veinPhase = new Float32Array(vertexCount);
|
|
545
|
+
const pos = (u, v) => {
|
|
546
|
+
const su = 2 * u - 1;
|
|
547
|
+
const hw = lotusPetalHalfWidthFraction(v) * halfWidthMax;
|
|
548
|
+
const x = su * hw;
|
|
549
|
+
const y = v * P.length;
|
|
550
|
+
const cup = P.cup * halfWidthMax * (su * su);
|
|
551
|
+
const ridge = P.ridge * Math.exp(-(su * su) / (2 * 0.16 * 0.16)) * lotusSmoothstep(0, 0.3, v) * (1 - 0.4 * v);
|
|
552
|
+
const sag = P.gravitySag * v * v * P.length;
|
|
553
|
+
return [x, y, cup + ridge - sag];
|
|
554
|
+
};
|
|
555
|
+
for (let j = 0; j < rows; j += 1) {
|
|
556
|
+
const v = j / nv;
|
|
557
|
+
for (let i = 0; i < cols; i += 1) {
|
|
558
|
+
const u = i / nu;
|
|
559
|
+
const idx = j * cols + i;
|
|
560
|
+
const [x, y, z] = pos(u, v);
|
|
561
|
+
positions[idx * 3] = x;
|
|
562
|
+
positions[idx * 3 + 1] = y;
|
|
563
|
+
positions[idx * 3 + 2] = z;
|
|
564
|
+
petalUv[idx * 2] = u;
|
|
565
|
+
petalUv[idx * 2 + 1] = v;
|
|
566
|
+
veinPhase[idx] = P.veinPhase;
|
|
567
|
+
const eps = 1e-3;
|
|
568
|
+
const pu0 = pos(Math.max(0, u - eps), v);
|
|
569
|
+
const pu1 = pos(Math.min(1, u + eps), v);
|
|
570
|
+
const pv0 = pos(u, Math.max(0, v - eps));
|
|
571
|
+
const pv1 = pos(u, Math.min(1, v + eps));
|
|
572
|
+
const dux = pu1[0] - pu0[0];
|
|
573
|
+
const duy = pu1[1] - pu0[1];
|
|
574
|
+
const duz = pu1[2] - pu0[2];
|
|
575
|
+
const dvx = pv1[0] - pv0[0];
|
|
576
|
+
const dvy = pv1[1] - pv0[1];
|
|
577
|
+
const dvz = pv1[2] - pv0[2];
|
|
578
|
+
let nx = duy * dvz - duz * dvy;
|
|
579
|
+
let ny = duz * dvx - dux * dvz;
|
|
580
|
+
let nz = dux * dvy - duy * dvx;
|
|
581
|
+
const len = Math.hypot(nx, ny, nz);
|
|
582
|
+
if (len < 1e-8) {
|
|
583
|
+
nx = 0;
|
|
584
|
+
ny = 0;
|
|
585
|
+
nz = 1;
|
|
586
|
+
} else {
|
|
587
|
+
nx /= len;
|
|
588
|
+
ny /= len;
|
|
589
|
+
nz /= len;
|
|
590
|
+
if (nz < 0) {
|
|
591
|
+
nx = -nx;
|
|
592
|
+
ny = -ny;
|
|
593
|
+
nz = -nz;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
normals[idx * 3] = nx;
|
|
597
|
+
normals[idx * 3 + 1] = ny;
|
|
598
|
+
normals[idx * 3 + 2] = nz;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
const indices = new Uint32Array(nu * nv * 6);
|
|
602
|
+
let k = 0;
|
|
603
|
+
for (let j = 0; j < nv; j += 1) {
|
|
604
|
+
for (let i = 0; i < nu; i += 1) {
|
|
605
|
+
const a = j * cols + i;
|
|
606
|
+
const b = a + 1;
|
|
607
|
+
const c = a + cols;
|
|
608
|
+
const d = c + 1;
|
|
609
|
+
indices[k] = a;
|
|
610
|
+
indices[k + 1] = b;
|
|
611
|
+
indices[k + 2] = c;
|
|
612
|
+
indices[k + 3] = b;
|
|
613
|
+
indices[k + 4] = d;
|
|
614
|
+
indices[k + 5] = c;
|
|
615
|
+
k += 6;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
return { positions, normals, petalUv, veinPhase, indices, vertexCount };
|
|
619
|
+
}
|
|
620
|
+
function lotusPetalGeometryParamsFromProfile(profile, options = {}) {
|
|
621
|
+
const rings = profile.petal_rings;
|
|
622
|
+
const ring = (options.ring ? rings.find((r) => r.name === options.ring) : void 0) ?? rings[rings.length - 1];
|
|
623
|
+
const { ring: _ring, ...overrides } = options;
|
|
624
|
+
return {
|
|
625
|
+
...DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS,
|
|
626
|
+
...ring ? { length: ring.length, width: ring.width, cup: ring.cup, gravitySag: ring.gravity_sag } : {},
|
|
627
|
+
...overrides
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
function buildLotusFlowerPlacements(profile = createBotanicalLotusRenderProfile(), options = {}) {
|
|
631
|
+
const radiusScale = options.radiusScale ?? 0.5;
|
|
632
|
+
const ringLift = options.ringLift ?? 0.12;
|
|
633
|
+
const goldenAngle = LOTUS_GOLDEN_ANGLE_DEG * Math.PI / 180;
|
|
634
|
+
const placements = [];
|
|
635
|
+
let globalIndex = 0;
|
|
636
|
+
profile.petal_rings.forEach((ring, idx) => {
|
|
637
|
+
const ringNum = idx + 1;
|
|
638
|
+
const scale = LOTUS_RING_SCALING[ringNum] ?? LOTUS_RING_SCALING[3];
|
|
639
|
+
const radius = ring.radius * scale.radius * radiusScale;
|
|
640
|
+
const tilt = (90 - ring.pitch_degrees) * Math.PI / 180;
|
|
641
|
+
const lift = (profile.petal_rings.length - ringNum) * ringLift;
|
|
642
|
+
for (let i = 0; i < ring.count; i += 1) {
|
|
643
|
+
placements.push({
|
|
644
|
+
azimuth: globalIndex * goldenAngle,
|
|
645
|
+
tilt,
|
|
646
|
+
radius,
|
|
647
|
+
lift,
|
|
648
|
+
ring: ringNum
|
|
649
|
+
});
|
|
650
|
+
globalIndex += 1;
|
|
651
|
+
}
|
|
652
|
+
});
|
|
653
|
+
return placements;
|
|
654
|
+
}
|
|
524
655
|
function lotusMulberry32(seed) {
|
|
525
656
|
let a = seed >>> 0;
|
|
526
657
|
return () => {
|
|
@@ -1015,7 +1146,7 @@ function lotusPetalTurgorOpenProgress(state) {
|
|
|
1015
1146
|
const tip = lotusPetalTurgorTipDeg(state);
|
|
1016
1147
|
return Math.max(0, Math.min(1, (250 - tip) / (250 - 76)));
|
|
1017
1148
|
}
|
|
1018
|
-
var DEFAULT_BOTANICAL_LOTUS_CONFIG, SHA256_HASH_PATTERN, HEX_COLOR_PATTERN, RING_RENDER_DEFAULTS, botanicalLotusHandler, LOTUS_GOLDEN_ANGLE_DEG, LOTUS_GROWTH_SECONDS, LOTUS_GENESIS_SEED_PLACEHOLDER, LOTUS_RING_SCALING, LOTUS_OUTER_PETAL_COLOR, LOTUS_PETAL_NAME_RE, LOTUS_PETAL_SHADER_CHUNKS, LOTUS_PETAL_CHUNK_ENTRIES, LOTUS_PETAL_DEFAULT_DYNAMIC, LOTUS_PETAL_UNIFORM_BINDINGS;
|
|
1149
|
+
var DEFAULT_BOTANICAL_LOTUS_CONFIG, SHA256_HASH_PATTERN, HEX_COLOR_PATTERN, RING_RENDER_DEFAULTS, botanicalLotusHandler, LOTUS_GOLDEN_ANGLE_DEG, LOTUS_GROWTH_SECONDS, LOTUS_GENESIS_SEED_PLACEHOLDER, LOTUS_RING_SCALING, LOTUS_OUTER_PETAL_COLOR, LOTUS_PETAL_NAME_RE, LOTUS_PETAL_SHADER_CHUNKS, LOTUS_PETAL_CHUNK_ENTRIES, LOTUS_PETAL_DEFAULT_DYNAMIC, LOTUS_PETAL_UNIFORM_BINDINGS, DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS;
|
|
1019
1150
|
var init_BotanicalLotusTrait = __esm({
|
|
1020
1151
|
"src/traits/BotanicalLotusTrait.ts"() {
|
|
1021
1152
|
DEFAULT_BOTANICAL_LOTUS_CONFIG = {
|
|
@@ -1376,9 +1507,19 @@ totalEmissiveRadiance += lotusScatter * (0.28 + uLotusBloom * 0.72);`
|
|
|
1376
1507
|
uLotusBloom: "bloom",
|
|
1377
1508
|
uLotusTime: "time"
|
|
1378
1509
|
};
|
|
1510
|
+
DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS = {
|
|
1511
|
+
length: 1.7,
|
|
1512
|
+
width: 1.1,
|
|
1513
|
+
cup: 0.34,
|
|
1514
|
+
ridge: 0.12,
|
|
1515
|
+
gravitySag: 0.18,
|
|
1516
|
+
segmentsU: 24,
|
|
1517
|
+
segmentsV: 40,
|
|
1518
|
+
veinPhase: 0
|
|
1519
|
+
};
|
|
1379
1520
|
}
|
|
1380
1521
|
});
|
|
1381
1522
|
|
|
1382
|
-
export { DEFAULT_BOTANICAL_LOTUS_CONFIG, LOTUS_GENESIS_SEED_PLACEHOLDER, LOTUS_GOLDEN_ANGLE_DEG, LOTUS_GROWTH_SECONDS, LOTUS_OUTER_PETAL_COLOR, LOTUS_PETAL_CHUNK_ENTRIES, LOTUS_PETAL_SHADER_CHUNKS, LOTUS_PETAL_UNIFORM_BINDINGS, LOTUS_RING_SCALING, assertBotanicalLotusConfig, botanicalLotusHandler, buildLotusPetalMaterialSpec, buildLotusSceneFromComposition, createBotanicalLotusRenderProfile, createLotusMeristem, createLotusMorphogen, createLotusMorphogen2D, createLotusPetalTurgor, createLotusPond, deriveBotanicalLotusAnchorStatus, deriveLotusBloomFromGlow, disturbLotusPond, generateBotanicalNormalMap, generateBotanicalRoughnessMap, getBotanicalLotusPetalCount, init_BotanicalLotusTrait, lotusMorphogen2DPeaks, lotusMorphogen2DSampleAt, lotusMorphogenPeaks, lotusPetalRenderColor, lotusPetalTurgorOpenProgress, lotusPetalTurgorTipDeg, lotusPondSurface, normalizeBotanicalLotusConfig, simulateLotusMorphogenesis, simulateLotusPetalGrowth, simulateLotusPhyllotaxis, stepLotusMeristem, stepLotusMorphogen, stepLotusMorphogen2D, stepLotusPetalTurgor, stepLotusPond, validateBotanicalLotusConfig };
|
|
1383
|
-
//# sourceMappingURL=chunk-
|
|
1384
|
-
//# sourceMappingURL=chunk-
|
|
1523
|
+
export { DEFAULT_BOTANICAL_LOTUS_CONFIG, DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS, LOTUS_GENESIS_SEED_PLACEHOLDER, LOTUS_GOLDEN_ANGLE_DEG, LOTUS_GROWTH_SECONDS, LOTUS_OUTER_PETAL_COLOR, LOTUS_PETAL_CHUNK_ENTRIES, LOTUS_PETAL_SHADER_CHUNKS, LOTUS_PETAL_UNIFORM_BINDINGS, LOTUS_RING_SCALING, assertBotanicalLotusConfig, botanicalLotusHandler, buildLotusFlowerPlacements, buildLotusPetalGeometryData, buildLotusPetalMaterialSpec, buildLotusSceneFromComposition, createBotanicalLotusRenderProfile, createLotusMeristem, createLotusMorphogen, createLotusMorphogen2D, createLotusPetalTurgor, createLotusPond, deriveBotanicalLotusAnchorStatus, deriveLotusBloomFromGlow, disturbLotusPond, generateBotanicalNormalMap, generateBotanicalRoughnessMap, getBotanicalLotusPetalCount, init_BotanicalLotusTrait, lotusMorphogen2DPeaks, lotusMorphogen2DSampleAt, lotusMorphogenPeaks, lotusPetalGeometryParamsFromProfile, lotusPetalRenderColor, lotusPetalTurgorOpenProgress, lotusPetalTurgorTipDeg, lotusPondSurface, normalizeBotanicalLotusConfig, simulateLotusMorphogenesis, simulateLotusPetalGrowth, simulateLotusPhyllotaxis, stepLotusMeristem, stepLotusMorphogen, stepLotusMorphogen2D, stepLotusPetalTurgor, stepLotusPond, validateBotanicalLotusConfig };
|
|
1524
|
+
//# sourceMappingURL=chunk-QRPRIJ2W.js.map
|
|
1525
|
+
//# sourceMappingURL=chunk-QRPRIJ2W.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_R3FCompiler, MATERIAL_PRESETS } from './chunk-
|
|
1
|
+
import { init_R3FCompiler, MATERIAL_PRESETS } from './chunk-37ZNYWWW.js';
|
|
2
2
|
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-TJHVSBP2.js';
|
|
3
3
|
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
4
4
|
import { init_PlatformConditional, platformCategory, PLATFORM_CAPABILITIES, PLATFORM_CATEGORIES } from './chunk-GZG4KA4E.js';
|
|
@@ -6880,5 +6880,5 @@ function compilePipelineSource(source, options = {}) {
|
|
|
6880
6880
|
}
|
|
6881
6881
|
|
|
6882
6882
|
export { A2AAgentCardCompiler, A2AAgentCardCompiler_exports, BUILTIN_RESOURCES, CAPABILITY_HIERARCHY, CATEGORY_DEFAULT_EMBODIMENT, CompilerBridge, CrossRealityTraitRegistry, EFFECTS_BY_CATEGORY, EFFECT_TO_CAPABILITY, EffectChecker, EffectRow, GaussianSplattingCompiler, HANDOFF_PATH_RULES, LinearTypeChecker, MVC_BUDGET_CONSTRAINTS, NIRCompiler, NIRCompiler_exports, Native2DCompiler, Native2DCompiler_exports, PLATFORM_BUDGETS, PLATFORM_EMBODIMENT_OVERRIDES, ResourceBudgetAnalyzer, SHARED_SORT_SHADER_PATH, SpatialPartitionPass, TRAIT_EFFECTS, TRAIT_RESOURCE_COSTS, TRAIT_RESOURCE_MAP, TRUST_LEVEL_CAPABILITIES, ThreeJSCompiler, ThreeJSCompiler_exports, USDZPipeline, bestCategoryForTraits, buildSafetyReport, checkCapabilities, compilePipelineSource, compilePipelineSourceToNode, compilePipelineSourceToPython, compilePipelineToNode, compilePipelineToPython, createCrossRealityTraitRegistry, createEffectChecker, createGaussianSplattingCompiler, dangerLevel, deriveRequirements, detectMultiUserSharedSort, effectCategory, expandCapabilities, formatReport, generateCertificate, getCompilerBridge, getCrossRealityTraitRegistry, inferFromBuiltins, inferFromTraits, init_A2AAgentCardCompiler, init_NIRCompiler, init_Native2DCompiler, init_ThreeJSCompiler, isSafeTraitSet, knownBuiltins, knownTraits, quickSafetyCheck, resetCrossRealityTraitRegistry, runSafetyPass, selectModality, selectModalityForAll, spatialPartition };
|
|
6883
|
-
//# sourceMappingURL=chunk-
|
|
6884
|
-
//# sourceMappingURL=chunk-
|
|
6883
|
+
//# sourceMappingURL=chunk-QSCGZ4DW.js.map
|
|
6884
|
+
//# sourceMappingURL=chunk-QSCGZ4DW.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { generateHullGeometry, generateMembraneGeometry, generateSplineGeometry } from './chunk-EKBKLK7P.js';
|
|
2
|
-
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-
|
|
2
|
+
import { init_R3FCompiler, init_ObjectPool, ASTNodePool, MATERIAL_PRESETS } from './chunk-37ZNYWWW.js';
|
|
3
3
|
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
4
4
|
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToGLTF } from './chunk-BOVPWH4H.js';
|
|
5
5
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
@@ -2248,5 +2248,5 @@ function createGLTFPipeline(options) {
|
|
|
2248
2248
|
}
|
|
2249
2249
|
|
|
2250
2250
|
export { GLTFPipeline, createGLTFPipeline, generateScaleNormalMap, generateScaleTexture };
|
|
2251
|
-
//# sourceMappingURL=chunk-
|
|
2252
|
-
//# sourceMappingURL=chunk-
|
|
2251
|
+
//# sourceMappingURL=chunk-RLLNOI3T.js.map
|
|
2252
|
+
//# sourceMappingURL=chunk-RLLNOI3T.js.map
|
|
@@ -5,7 +5,7 @@ var chunk3FOKASKO_cjs = require('./chunk-3FOKASKO.cjs');
|
|
|
5
5
|
var chunk4PDEPEQW_cjs = require('./chunk-4PDEPEQW.cjs');
|
|
6
6
|
var chunkXJAN7CZG_cjs = require('./chunk-XJAN7CZG.cjs');
|
|
7
7
|
var chunkXHIV6326_cjs = require('./chunk-XHIV6326.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkUPXIY52O_cjs = require('./chunk-UPXIY52O.cjs');
|
|
9
9
|
var chunkTVHSPJ4N_cjs = require('./chunk-TVHSPJ4N.cjs');
|
|
10
10
|
var chunkILRBGFVD_cjs = require('./chunk-ILRBGFVD.cjs');
|
|
11
11
|
var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
|
|
@@ -54819,7 +54819,7 @@ var gotchaHandler = {
|
|
|
54819
54819
|
};
|
|
54820
54820
|
|
|
54821
54821
|
// src/traits/VRTraitSystem.ts
|
|
54822
|
-
|
|
54822
|
+
chunkUPXIY52O_cjs.init_BotanicalLotusTrait();
|
|
54823
54823
|
|
|
54824
54824
|
// src/traits/FluidSimulationTrait.ts
|
|
54825
54825
|
var SpatialHash = class {
|
|
@@ -55749,7 +55749,7 @@ var VRTraitRegistry = class {
|
|
|
55749
55749
|
for (const handler of vfxParticleHandlers) this.register(handler);
|
|
55750
55750
|
this.register(gpuPhysicsHandler);
|
|
55751
55751
|
this.register(gpuBufferHandler);
|
|
55752
|
-
this.register(
|
|
55752
|
+
this.register(chunkUPXIY52O_cjs.botanicalLotusHandler);
|
|
55753
55753
|
this.register(phyllotaxisHandler);
|
|
55754
55754
|
this.register(bloomReactiveHandler);
|
|
55755
55755
|
this.register(lotusRootHandler);
|
|
@@ -56579,5 +56579,5 @@ exports.windHandler = windHandler;
|
|
|
56579
56579
|
exports.withNegotiation = withNegotiation;
|
|
56580
56580
|
exports.wotThingHandler = wotThingHandler;
|
|
56581
56581
|
exports.zkPrivateHandler = zkPrivateHandler;
|
|
56582
|
-
//# sourceMappingURL=chunk-
|
|
56583
|
-
//# sourceMappingURL=chunk-
|
|
56582
|
+
//# sourceMappingURL=chunk-SMRVK6BI.cjs.map
|
|
56583
|
+
//# sourceMappingURL=chunk-SMRVK6BI.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkVDDJUO4G_cjs = require('./chunk-VDDJUO4G.cjs');
|
|
4
4
|
var chunk5S7RKFGR_cjs = require('./chunk-5S7RKFGR.cjs');
|
|
5
5
|
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
6
6
|
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
@@ -2564,7 +2564,7 @@ var init_NIRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2564
2564
|
|
|
2565
2565
|
// src/compiler/USDZPipeline.ts
|
|
2566
2566
|
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
2567
|
-
|
|
2567
|
+
chunkVDDJUO4G_cjs.init_R3FCompiler();
|
|
2568
2568
|
function presetString(p, k) {
|
|
2569
2569
|
const v = p[k];
|
|
2570
2570
|
return typeof v === "string" ? v : void 0;
|
|
@@ -2795,8 +2795,8 @@ ${domainBlocksOutput}` : materials,
|
|
|
2795
2795
|
const matName = `Material_${this.sanitizeName(obj.name)}`;
|
|
2796
2796
|
const mat = { name: matName };
|
|
2797
2797
|
const presetName = typeof material === "string" ? material : typeof materialPreset === "string" ? materialPreset : void 0;
|
|
2798
|
-
if (presetName &&
|
|
2799
|
-
const preset =
|
|
2798
|
+
if (presetName && chunkVDDJUO4G_cjs.MATERIAL_PRESETS[presetName]) {
|
|
2799
|
+
const preset = chunkVDDJUO4G_cjs.MATERIAL_PRESETS[presetName];
|
|
2800
2800
|
const colorStr = presetString(preset, "color");
|
|
2801
2801
|
if (colorStr) mat.baseColor = this.hexToRGB(colorStr);
|
|
2802
2802
|
const metal = presetNumber(preset, "metalness");
|
|
@@ -6943,5 +6943,5 @@ exports.runSafetyPass = runSafetyPass;
|
|
|
6943
6943
|
exports.selectModality = selectModality;
|
|
6944
6944
|
exports.selectModalityForAll = selectModalityForAll;
|
|
6945
6945
|
exports.spatialPartition = spatialPartition;
|
|
6946
|
-
//# sourceMappingURL=chunk-
|
|
6947
|
-
//# sourceMappingURL=chunk-
|
|
6946
|
+
//# sourceMappingURL=chunk-U5GLSXSD.cjs.map
|
|
6947
|
+
//# sourceMappingURL=chunk-U5GLSXSD.cjs.map
|
|
@@ -523,6 +523,137 @@ function generateBotanicalRoughnessMap(opts) {
|
|
|
523
523
|
}
|
|
524
524
|
return { width: size, height: size, data };
|
|
525
525
|
}
|
|
526
|
+
function lotusSmoothstep(edge0, edge1, x) {
|
|
527
|
+
const t = Math.min(1, Math.max(0, (x - edge0) / (edge1 - edge0)));
|
|
528
|
+
return t * t * (3 - 2 * t);
|
|
529
|
+
}
|
|
530
|
+
function lotusPetalHalfWidthFraction(v) {
|
|
531
|
+
const broad = Math.sin(Math.PI * Math.pow(v, 0.8));
|
|
532
|
+
const tipPoint = 1 - lotusSmoothstep(0.82, 1, v) * 0.55;
|
|
533
|
+
return Math.max(0, broad * tipPoint);
|
|
534
|
+
}
|
|
535
|
+
function buildLotusPetalGeometryData(params = {}) {
|
|
536
|
+
const P = { ...exports.DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS, ...params };
|
|
537
|
+
const nu = Math.max(2, Math.floor(P.segmentsU));
|
|
538
|
+
const nv = Math.max(2, Math.floor(P.segmentsV));
|
|
539
|
+
const cols = nu + 1;
|
|
540
|
+
const rows = nv + 1;
|
|
541
|
+
const vertexCount = cols * rows;
|
|
542
|
+
const halfWidthMax = P.width * 0.5;
|
|
543
|
+
const positions = new Float32Array(vertexCount * 3);
|
|
544
|
+
const normals = new Float32Array(vertexCount * 3);
|
|
545
|
+
const petalUv = new Float32Array(vertexCount * 2);
|
|
546
|
+
const veinPhase = new Float32Array(vertexCount);
|
|
547
|
+
const pos = (u, v) => {
|
|
548
|
+
const su = 2 * u - 1;
|
|
549
|
+
const hw = lotusPetalHalfWidthFraction(v) * halfWidthMax;
|
|
550
|
+
const x = su * hw;
|
|
551
|
+
const y = v * P.length;
|
|
552
|
+
const cup = P.cup * halfWidthMax * (su * su);
|
|
553
|
+
const ridge = P.ridge * Math.exp(-(su * su) / (2 * 0.16 * 0.16)) * lotusSmoothstep(0, 0.3, v) * (1 - 0.4 * v);
|
|
554
|
+
const sag = P.gravitySag * v * v * P.length;
|
|
555
|
+
return [x, y, cup + ridge - sag];
|
|
556
|
+
};
|
|
557
|
+
for (let j = 0; j < rows; j += 1) {
|
|
558
|
+
const v = j / nv;
|
|
559
|
+
for (let i = 0; i < cols; i += 1) {
|
|
560
|
+
const u = i / nu;
|
|
561
|
+
const idx = j * cols + i;
|
|
562
|
+
const [x, y, z] = pos(u, v);
|
|
563
|
+
positions[idx * 3] = x;
|
|
564
|
+
positions[idx * 3 + 1] = y;
|
|
565
|
+
positions[idx * 3 + 2] = z;
|
|
566
|
+
petalUv[idx * 2] = u;
|
|
567
|
+
petalUv[idx * 2 + 1] = v;
|
|
568
|
+
veinPhase[idx] = P.veinPhase;
|
|
569
|
+
const eps = 1e-3;
|
|
570
|
+
const pu0 = pos(Math.max(0, u - eps), v);
|
|
571
|
+
const pu1 = pos(Math.min(1, u + eps), v);
|
|
572
|
+
const pv0 = pos(u, Math.max(0, v - eps));
|
|
573
|
+
const pv1 = pos(u, Math.min(1, v + eps));
|
|
574
|
+
const dux = pu1[0] - pu0[0];
|
|
575
|
+
const duy = pu1[1] - pu0[1];
|
|
576
|
+
const duz = pu1[2] - pu0[2];
|
|
577
|
+
const dvx = pv1[0] - pv0[0];
|
|
578
|
+
const dvy = pv1[1] - pv0[1];
|
|
579
|
+
const dvz = pv1[2] - pv0[2];
|
|
580
|
+
let nx = duy * dvz - duz * dvy;
|
|
581
|
+
let ny = duz * dvx - dux * dvz;
|
|
582
|
+
let nz = dux * dvy - duy * dvx;
|
|
583
|
+
const len = Math.hypot(nx, ny, nz);
|
|
584
|
+
if (len < 1e-8) {
|
|
585
|
+
nx = 0;
|
|
586
|
+
ny = 0;
|
|
587
|
+
nz = 1;
|
|
588
|
+
} else {
|
|
589
|
+
nx /= len;
|
|
590
|
+
ny /= len;
|
|
591
|
+
nz /= len;
|
|
592
|
+
if (nz < 0) {
|
|
593
|
+
nx = -nx;
|
|
594
|
+
ny = -ny;
|
|
595
|
+
nz = -nz;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
normals[idx * 3] = nx;
|
|
599
|
+
normals[idx * 3 + 1] = ny;
|
|
600
|
+
normals[idx * 3 + 2] = nz;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
const indices = new Uint32Array(nu * nv * 6);
|
|
604
|
+
let k = 0;
|
|
605
|
+
for (let j = 0; j < nv; j += 1) {
|
|
606
|
+
for (let i = 0; i < nu; i += 1) {
|
|
607
|
+
const a = j * cols + i;
|
|
608
|
+
const b = a + 1;
|
|
609
|
+
const c = a + cols;
|
|
610
|
+
const d = c + 1;
|
|
611
|
+
indices[k] = a;
|
|
612
|
+
indices[k + 1] = b;
|
|
613
|
+
indices[k + 2] = c;
|
|
614
|
+
indices[k + 3] = b;
|
|
615
|
+
indices[k + 4] = d;
|
|
616
|
+
indices[k + 5] = c;
|
|
617
|
+
k += 6;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
return { positions, normals, petalUv, veinPhase, indices, vertexCount };
|
|
621
|
+
}
|
|
622
|
+
function lotusPetalGeometryParamsFromProfile(profile, options = {}) {
|
|
623
|
+
const rings = profile.petal_rings;
|
|
624
|
+
const ring = (options.ring ? rings.find((r) => r.name === options.ring) : void 0) ?? rings[rings.length - 1];
|
|
625
|
+
const { ring: _ring, ...overrides } = options;
|
|
626
|
+
return {
|
|
627
|
+
...exports.DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS,
|
|
628
|
+
...ring ? { length: ring.length, width: ring.width, cup: ring.cup, gravitySag: ring.gravity_sag } : {},
|
|
629
|
+
...overrides
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
function buildLotusFlowerPlacements(profile = createBotanicalLotusRenderProfile(), options = {}) {
|
|
633
|
+
const radiusScale = options.radiusScale ?? 0.5;
|
|
634
|
+
const ringLift = options.ringLift ?? 0.12;
|
|
635
|
+
const goldenAngle = exports.LOTUS_GOLDEN_ANGLE_DEG * Math.PI / 180;
|
|
636
|
+
const placements = [];
|
|
637
|
+
let globalIndex = 0;
|
|
638
|
+
profile.petal_rings.forEach((ring, idx) => {
|
|
639
|
+
const ringNum = idx + 1;
|
|
640
|
+
const scale = exports.LOTUS_RING_SCALING[ringNum] ?? exports.LOTUS_RING_SCALING[3];
|
|
641
|
+
const radius = ring.radius * scale.radius * radiusScale;
|
|
642
|
+
const tilt = (90 - ring.pitch_degrees) * Math.PI / 180;
|
|
643
|
+
const lift = (profile.petal_rings.length - ringNum) * ringLift;
|
|
644
|
+
for (let i = 0; i < ring.count; i += 1) {
|
|
645
|
+
placements.push({
|
|
646
|
+
azimuth: globalIndex * goldenAngle,
|
|
647
|
+
tilt,
|
|
648
|
+
radius,
|
|
649
|
+
lift,
|
|
650
|
+
ring: ringNum
|
|
651
|
+
});
|
|
652
|
+
globalIndex += 1;
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
return placements;
|
|
656
|
+
}
|
|
526
657
|
function lotusMulberry32(seed) {
|
|
527
658
|
let a = seed >>> 0;
|
|
528
659
|
return () => {
|
|
@@ -1017,7 +1148,7 @@ function lotusPetalTurgorOpenProgress(state) {
|
|
|
1017
1148
|
const tip = lotusPetalTurgorTipDeg(state);
|
|
1018
1149
|
return Math.max(0, Math.min(1, (250 - tip) / (250 - 76)));
|
|
1019
1150
|
}
|
|
1020
|
-
exports.DEFAULT_BOTANICAL_LOTUS_CONFIG = void 0; var SHA256_HASH_PATTERN, HEX_COLOR_PATTERN, RING_RENDER_DEFAULTS; exports.botanicalLotusHandler = void 0; exports.LOTUS_GOLDEN_ANGLE_DEG = void 0; exports.LOTUS_GROWTH_SECONDS = void 0; exports.LOTUS_GENESIS_SEED_PLACEHOLDER = void 0; exports.LOTUS_RING_SCALING = void 0; exports.LOTUS_OUTER_PETAL_COLOR = void 0; var LOTUS_PETAL_NAME_RE; exports.LOTUS_PETAL_SHADER_CHUNKS = void 0; exports.LOTUS_PETAL_CHUNK_ENTRIES = void 0; var LOTUS_PETAL_DEFAULT_DYNAMIC; exports.LOTUS_PETAL_UNIFORM_BINDINGS = void 0;
|
|
1151
|
+
exports.DEFAULT_BOTANICAL_LOTUS_CONFIG = void 0; var SHA256_HASH_PATTERN, HEX_COLOR_PATTERN, RING_RENDER_DEFAULTS; exports.botanicalLotusHandler = void 0; exports.LOTUS_GOLDEN_ANGLE_DEG = void 0; exports.LOTUS_GROWTH_SECONDS = void 0; exports.LOTUS_GENESIS_SEED_PLACEHOLDER = void 0; exports.LOTUS_RING_SCALING = void 0; exports.LOTUS_OUTER_PETAL_COLOR = void 0; var LOTUS_PETAL_NAME_RE; exports.LOTUS_PETAL_SHADER_CHUNKS = void 0; exports.LOTUS_PETAL_CHUNK_ENTRIES = void 0; var LOTUS_PETAL_DEFAULT_DYNAMIC; exports.LOTUS_PETAL_UNIFORM_BINDINGS = void 0; exports.DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS = void 0;
|
|
1021
1152
|
var init_BotanicalLotusTrait = chunkHCCQLAA4_cjs.__esm({
|
|
1022
1153
|
"src/traits/BotanicalLotusTrait.ts"() {
|
|
1023
1154
|
exports.DEFAULT_BOTANICAL_LOTUS_CONFIG = {
|
|
@@ -1378,10 +1509,22 @@ totalEmissiveRadiance += lotusScatter * (0.28 + uLotusBloom * 0.72);`
|
|
|
1378
1509
|
uLotusBloom: "bloom",
|
|
1379
1510
|
uLotusTime: "time"
|
|
1380
1511
|
};
|
|
1512
|
+
exports.DEFAULT_LOTUS_PETAL_GEOMETRY_PARAMS = {
|
|
1513
|
+
length: 1.7,
|
|
1514
|
+
width: 1.1,
|
|
1515
|
+
cup: 0.34,
|
|
1516
|
+
ridge: 0.12,
|
|
1517
|
+
gravitySag: 0.18,
|
|
1518
|
+
segmentsU: 24,
|
|
1519
|
+
segmentsV: 40,
|
|
1520
|
+
veinPhase: 0
|
|
1521
|
+
};
|
|
1381
1522
|
}
|
|
1382
1523
|
});
|
|
1383
1524
|
|
|
1384
1525
|
exports.assertBotanicalLotusConfig = assertBotanicalLotusConfig;
|
|
1526
|
+
exports.buildLotusFlowerPlacements = buildLotusFlowerPlacements;
|
|
1527
|
+
exports.buildLotusPetalGeometryData = buildLotusPetalGeometryData;
|
|
1385
1528
|
exports.buildLotusPetalMaterialSpec = buildLotusPetalMaterialSpec;
|
|
1386
1529
|
exports.buildLotusSceneFromComposition = buildLotusSceneFromComposition;
|
|
1387
1530
|
exports.createBotanicalLotusRenderProfile = createBotanicalLotusRenderProfile;
|
|
@@ -1400,6 +1543,7 @@ exports.init_BotanicalLotusTrait = init_BotanicalLotusTrait;
|
|
|
1400
1543
|
exports.lotusMorphogen2DPeaks = lotusMorphogen2DPeaks;
|
|
1401
1544
|
exports.lotusMorphogen2DSampleAt = lotusMorphogen2DSampleAt;
|
|
1402
1545
|
exports.lotusMorphogenPeaks = lotusMorphogenPeaks;
|
|
1546
|
+
exports.lotusPetalGeometryParamsFromProfile = lotusPetalGeometryParamsFromProfile;
|
|
1403
1547
|
exports.lotusPetalRenderColor = lotusPetalRenderColor;
|
|
1404
1548
|
exports.lotusPetalTurgorOpenProgress = lotusPetalTurgorOpenProgress;
|
|
1405
1549
|
exports.lotusPetalTurgorTipDeg = lotusPetalTurgorTipDeg;
|
|
@@ -1414,5 +1558,5 @@ exports.stepLotusMorphogen2D = stepLotusMorphogen2D;
|
|
|
1414
1558
|
exports.stepLotusPetalTurgor = stepLotusPetalTurgor;
|
|
1415
1559
|
exports.stepLotusPond = stepLotusPond;
|
|
1416
1560
|
exports.validateBotanicalLotusConfig = validateBotanicalLotusConfig;
|
|
1417
|
-
//# sourceMappingURL=chunk-
|
|
1418
|
-
//# sourceMappingURL=chunk-
|
|
1561
|
+
//# sourceMappingURL=chunk-UPXIY52O.cjs.map
|
|
1562
|
+
//# sourceMappingURL=chunk-UPXIY52O.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6DO5IZ5N_cjs = require('./chunk-6DO5IZ5N.cjs');
|
|
4
4
|
var chunkJIYN45TV_cjs = require('./chunk-JIYN45TV.cjs');
|
|
5
5
|
|
|
6
6
|
// src/HoloScriptDebugger.ts
|
|
@@ -21,7 +21,7 @@ var HoloScriptDebugger = class {
|
|
|
21
21
|
callStack: [],
|
|
22
22
|
breakpoints: []
|
|
23
23
|
};
|
|
24
|
-
this.runtime = runtime || new
|
|
24
|
+
this.runtime = runtime || new chunk6DO5IZ5N_cjs.HoloScriptRuntime();
|
|
25
25
|
this.parser = new chunkJIYN45TV_cjs.HoloScriptCodeParser();
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
@@ -420,5 +420,5 @@ function createDebugger(runtime) {
|
|
|
420
420
|
|
|
421
421
|
exports.HoloScriptDebugger = HoloScriptDebugger;
|
|
422
422
|
exports.createDebugger = createDebugger;
|
|
423
|
-
//# sourceMappingURL=chunk-
|
|
424
|
-
//# sourceMappingURL=chunk-
|
|
423
|
+
//# sourceMappingURL=chunk-UWXE23BT.cjs.map
|
|
424
|
+
//# sourceMappingURL=chunk-UWXE23BT.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkUOIGFQXC_cjs = require('./chunk-UOIGFQXC.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkUPXIY52O_cjs = require('./chunk-UPXIY52O.cjs');
|
|
5
5
|
var chunk5S7RKFGR_cjs = require('./chunk-5S7RKFGR.cjs');
|
|
6
6
|
var chunkOIQYIIO3_cjs = require('./chunk-OIQYIIO3.cjs');
|
|
7
7
|
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
@@ -761,7 +761,7 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
761
761
|
chunkKKP7JKN4_cjs.init_AgentRBAC();
|
|
762
762
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
763
763
|
init_ObjectPool();
|
|
764
|
-
|
|
764
|
+
chunkUPXIY52O_cjs.init_BotanicalLotusTrait();
|
|
765
765
|
r3fNodePool = new exports.ASTNodePool(
|
|
766
766
|
() => ({ type: "", props: {} }),
|
|
767
767
|
(node) => {
|
|
@@ -2933,9 +2933,30 @@ var init_R3FCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
2933
2933
|
* from `.holo` data instead of hand-authoring it.
|
|
2934
2934
|
*/
|
|
2935
2935
|
emitCompiledLotusMaterial(props, config) {
|
|
2936
|
-
const profile =
|
|
2937
|
-
props.__compiledMaterial =
|
|
2938
|
-
props.__uniformBindings =
|
|
2936
|
+
const profile = chunkUPXIY52O_cjs.createBotanicalLotusRenderProfile(config);
|
|
2937
|
+
props.__compiledMaterial = chunkUPXIY52O_cjs.buildLotusPetalMaterialSpec(profile);
|
|
2938
|
+
props.__uniformBindings = chunkUPXIY52O_cjs.LOTUS_PETAL_UNIFORM_BINDINGS;
|
|
2939
|
+
props.__petalGeometry = chunkUPXIY52O_cjs.buildLotusPetalGeometryData(
|
|
2940
|
+
chunkUPXIY52O_cjs.lotusPetalGeometryParamsFromProfile(profile)
|
|
2941
|
+
);
|
|
2942
|
+
props.__petalPlacements = chunkUPXIY52O_cjs.buildLotusFlowerPlacements(profile);
|
|
2943
|
+
props.__lotusScene = {
|
|
2944
|
+
stemHeight: 2.4,
|
|
2945
|
+
colors: {
|
|
2946
|
+
water: profile.colors.water,
|
|
2947
|
+
leaf: profile.colors.leaf,
|
|
2948
|
+
leafDark: profile.colors.leaf_dark
|
|
2949
|
+
},
|
|
2950
|
+
// The flower CENTRE: the seed pod (receptacle) ringed by stamen filaments —
|
|
2951
|
+
// the iconic lotus centre, colours + count from the profile.
|
|
2952
|
+
center: {
|
|
2953
|
+
seedPod: profile.colors.seed_pod,
|
|
2954
|
+
seedPodRim: profile.colors.seed_pod_rim,
|
|
2955
|
+
stamen: profile.colors.stamen,
|
|
2956
|
+
stamenTip: profile.colors.stamen_tip,
|
|
2957
|
+
stamenCount: profile.stamen_filament_count
|
|
2958
|
+
}
|
|
2959
|
+
};
|
|
2939
2960
|
}
|
|
2940
2961
|
compileNode(node) {
|
|
2941
2962
|
if (node.type === "system") {
|
|
@@ -4398,5 +4419,5 @@ exports.init_ObjectPool = init_ObjectPool;
|
|
|
4398
4419
|
exports.init_R3FCompiler = init_R3FCompiler;
|
|
4399
4420
|
exports.init_visual = init_visual;
|
|
4400
4421
|
exports.registerAllPresets = registerAllPresets;
|
|
4401
|
-
//# sourceMappingURL=chunk-
|
|
4402
|
-
//# sourceMappingURL=chunk-
|
|
4422
|
+
//# sourceMappingURL=chunk-VDDJUO4G.cjs.map
|
|
4423
|
+
//# sourceMappingURL=chunk-VDDJUO4G.cjs.map
|
|
@@ -2,9 +2,9 @@ import { computeHoloMapReplayFingerprint } from './chunk-WNNE3PO3.js';
|
|
|
2
2
|
import { isWebGpuEnvironmentPresent, HOLOMAP_SIMULATION_CONTRACT_KIND } from './chunk-YF2I3MV3.js';
|
|
3
3
|
|
|
4
4
|
// src/version.ts
|
|
5
|
-
var HOLOSCRIPT_VERSION = "8.0.
|
|
6
|
-
var GIT_COMMIT_SHA = "
|
|
7
|
-
var BUILD_TIMESTAMP = "2026-06-
|
|
5
|
+
var HOLOSCRIPT_VERSION = "8.0.3" ;
|
|
6
|
+
var GIT_COMMIT_SHA = "b806c07bf" ;
|
|
7
|
+
var BUILD_TIMESTAMP = "2026-06-05T00:05:33.792Z" ;
|
|
8
8
|
function getVersionString() {
|
|
9
9
|
const sha = `+${GIT_COMMIT_SHA}` ;
|
|
10
10
|
return `${HOLOSCRIPT_VERSION}${sha}`;
|
|
@@ -2172,5 +2172,5 @@ function createHoloMapRuntime(_config) {
|
|
|
2172
2172
|
}
|
|
2173
2173
|
|
|
2174
2174
|
export { BUILD_TIMESTAMP, GIT_COMMIT_SHA, HOLOMAP_DEFAULTS, HOLOSCRIPT_VERSION, assertWeightCid, createHoloMapMicroEncoder, createHoloMapRunId, createHoloMapRuntime, frameToMicroImage, getCachedWeightBlob, getVersionInfo, getVersionString, loadHoloMapWeightBlob, logHoloMapEvent, normalizeWeightCidDigest, putCachedWeightBlob, resetHoloMapTelemetryForTests, runHoloMapMicroEncoderCpu, tryCreateHoloMapEncoderDevice };
|
|
2175
|
-
//# sourceMappingURL=chunk-
|
|
2176
|
-
//# sourceMappingURL=chunk-
|
|
2175
|
+
//# sourceMappingURL=chunk-XF3AATZJ.js.map
|
|
2176
|
+
//# sourceMappingURL=chunk-XF3AATZJ.js.map
|