@holoscript/core 8.0.0 → 8.0.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 +2 -2
- package/dist/{GLTFPipeline-M7WSSJED.cjs → GLTFPipeline-76QTLF4Z.cjs} +10 -9
- package/dist/{GLTFPipeline-276GE64O.js → GLTFPipeline-ES5YMBGT.js} +6 -5
- package/dist/HoloScriptRuntime-2DDYOPOR.js +10 -0
- package/dist/{HoloScriptRuntime-SXEAEU2N.cjs → HoloScriptRuntime-ZGRR5EB3.cjs} +5 -5
- package/dist/{chunk-JJBE3TIH.cjs → chunk-2IWC4FP7.cjs} +6 -6
- package/dist/{chunk-S4W6Z2MN.js → chunk-2X7NGX3M.js} +3 -3
- package/dist/{chunk-NGKREZ36.js → chunk-3OYVN53V.js} +505 -5
- package/dist/{chunk-GQT4TYKY.cjs → chunk-3OZACAFQ.cjs} +44 -19
- package/dist/{chunk-T2QCTZMO.js → chunk-4SDKXQ4C.js} +3 -3
- package/dist/{chunk-253GBQZY.cjs → chunk-5H2G27PK.cjs} +35 -35
- package/dist/{chunk-C2A5DUMF.cjs → chunk-5NWINHR5.cjs} +35 -35
- package/dist/{chunk-D54CNIAJ.cjs → chunk-7H33U5SM.cjs} +2 -2
- package/dist/{chunk-CXFDRBQU.cjs → chunk-7M3PNU2M.cjs} +7 -7
- package/dist/{chunk-WJIHFLMJ.js → chunk-ADADVMXY.js} +2 -2
- package/dist/{chunk-NHWSN2SD.cjs → chunk-AVJHHUC5.cjs} +17 -17
- package/dist/{chunk-JCLBKPMX.js → chunk-BOVPWH4H.js} +48 -4
- package/dist/{chunk-ZZEI7MV4.js → chunk-CCATWPXM.js} +3 -3
- package/dist/{chunk-NBMHU6SW.js → chunk-CMT5NMMS.js} +3 -3
- package/dist/{chunk-HINXWAOD.cjs → chunk-CR4FMIWL.cjs} +11 -11
- package/dist/{chunk-IZM5VQZD.js → chunk-D3STJ56J.js} +3 -3
- package/dist/{chunk-EUDQTK7N.cjs → chunk-DAKRKDZV.cjs} +27 -38
- package/dist/{chunk-ZBQXLH2L.js → chunk-DHO2YRIM.js} +3 -3
- package/dist/{chunk-RVBHAXFG.js → chunk-DXWOTOUK.js} +16 -11
- package/dist/{chunk-F43YAA34.js → chunk-E47Z63DF.js} +3 -3
- package/dist/{chunk-62FBK3B7.js → chunk-FFAOS5HQ.js} +4 -4
- package/dist/{chunk-UM6C3CGK.js → chunk-FS7BFHFN.js} +28 -3
- package/dist/{chunk-SJBGLS25.cjs → chunk-FXIO6GHT.cjs} +5 -5
- package/dist/{chunk-XUUVDHIF.cjs → chunk-HKEXJUWS.cjs} +48 -3
- package/dist/{chunk-NXZFOPVD.cjs → chunk-HNDK4IQU.cjs} +16 -16
- package/dist/{chunk-SMIWS6DE.cjs → chunk-IELX2OKI.js} +118 -7
- package/dist/{chunk-KH4CNH66.cjs → chunk-IMGDUSTT.cjs} +4 -4
- package/dist/{chunk-LICPB5HZ.cjs → chunk-IUDGEUDO.cjs} +10 -10
- package/dist/{chunk-73FELZVJ.cjs → chunk-IWC5DM2M.cjs} +11 -11
- package/dist/{chunk-PHVRG4I2.js → chunk-J7XZV333.js} +3 -3
- package/dist/{chunk-K4VVR7CN.cjs → chunk-JBNDTXXV.cjs} +15 -15
- package/dist/{chunk-3NFFOWGG.js → chunk-KFIXE2MB.js} +14 -5
- package/dist/{chunk-B4TFTDG4.js → chunk-LCEXRE5Z.js} +3 -3
- package/dist/{chunk-IVSZDECV.js → chunk-LHAXPADA.js} +3 -3
- package/dist/{chunk-7CUEMLDZ.cjs → chunk-LKBTCABN.cjs} +540 -38
- package/dist/{chunk-AYBXB26F.js → chunk-LOGP3JWH.js} +5 -5
- package/dist/{chunk-KVRSTFNH.cjs → chunk-NCWCUZNS.cjs} +8 -8
- package/dist/{chunk-NV4VMVXU.js → chunk-NNFA2C3Y.js} +3 -3
- package/dist/{chunk-HZSPDCXV.cjs → chunk-O7WLJ53D.cjs} +3 -3
- package/dist/{chunk-MGE5Z4GS.js → chunk-OH2FAIVU.js} +3 -3
- package/dist/{chunk-UMABK6SI.js → chunk-PY37LNDP.js} +3 -3
- package/dist/{chunk-23J755AR.js → chunk-QD32ADK6.js} +3 -3
- package/dist/chunk-QRPRIJ2W.js +1525 -0
- package/dist/{chunk-HZTDET3N.js → chunk-R24NNAEG.js} +3 -3
- package/dist/{chunk-W7VDOASB.cjs → chunk-RMTPN3G4.cjs} +5 -5
- package/dist/{chunk-6DPSFNJB.cjs → chunk-ROHLEP2W.cjs} +16 -16
- package/dist/{chunk-3HYYMEXI.cjs → chunk-SMRVK6BI.cjs} +17 -12
- package/dist/{chunk-25IQCHTO.cjs → chunk-TWUXUCEW.cjs} +35 -35
- package/dist/{chunk-KEFNV2WM.cjs → chunk-U7IUS5HJ.cjs} +13 -13
- package/dist/{chunk-3AO425MZ.cjs → chunk-UFZZ7TSN.cjs} +17 -17
- package/dist/chunk-UPXIY52O.cjs +1562 -0
- package/dist/{chunk-BE4UJCQT.js → chunk-UWJHCOH2.js} +3 -3
- package/dist/{chunk-7HIASF7S.cjs → chunk-XB274MW5.cjs} +10 -10
- package/dist/{chunk-RARB3MBR.js → chunk-YDPEHCCI.cjs} +127 -3
- package/dist/{chunk-KJLB4OPV.js → chunk-YN2YWTXW.js} +3 -3
- package/dist/{chunk-IPWSXCCN.js → chunk-YVD3CSO3.js} +3 -3
- package/dist/{chunk-OR4Q2BGL.cjs → chunk-YWOBW2PV.cjs} +15 -15
- package/dist/{chunk-JX7YL6ZE.js → chunk-ZPYP4RBA.js} +4 -4
- package/dist/compiler/android-xr.cjs +5 -5
- package/dist/compiler/android-xr.js +3 -3
- package/dist/compiler/babylon.cjs +4 -4
- package/dist/compiler/babylon.js +3 -3
- package/dist/compiler/business-quest.cjs +9 -9
- package/dist/compiler/business-quest.js +1 -1
- package/dist/compiler/domain-block-utils.cjs +154 -150
- package/dist/compiler/domain-block-utils.js +2 -2
- package/dist/compiler/gltf-pipeline.cjs +8 -8
- package/dist/compiler/gltf-pipeline.js +1 -1
- package/dist/compiler/godot.cjs +4 -4
- package/dist/compiler/godot.js +3 -3
- package/dist/compiler/index.cjs +129 -581
- package/dist/compiler/index.d.ts +12 -0
- package/dist/compiler/index.js +42 -498
- package/dist/compiler/multi-layer.cjs +5 -5
- package/dist/compiler/multi-layer.js +4 -4
- package/dist/compiler/nodetoy.d.ts +69 -0
- package/dist/compiler/openxr.cjs +4 -4
- package/dist/compiler/openxr.js +3 -3
- package/dist/compiler/playcanvas.cjs +4 -4
- package/dist/compiler/playcanvas.js +3 -3
- package/dist/compiler/r3f.cjs +9 -8
- package/dist/compiler/r3f.js +4 -3
- package/dist/compiler/sdf.cjs +5 -5
- package/dist/compiler/sdf.js +3 -3
- package/dist/compiler/unity.cjs +4 -4
- package/dist/compiler/unity.js +3 -3
- package/dist/compiler/unreal.cjs +5 -5
- package/dist/compiler/unreal.js +3 -3
- package/dist/compiler/urdf.cjs +12 -12
- package/dist/compiler/urdf.js +3 -3
- package/dist/compiler/usd-physics.cjs +5 -5
- package/dist/compiler/usd-physics.js +2 -2
- package/dist/compiler/visionos.cjs +4 -4
- package/dist/compiler/visionos.js +3 -3
- package/dist/compiler/vrchat.cjs +5 -5
- package/dist/compiler/vrchat.js +3 -3
- package/dist/compiler/vrr.cjs +5 -5
- package/dist/compiler/vrr.js +3 -3
- package/dist/compiler/wasm.cjs +8 -8
- package/dist/compiler/wasm.js +3 -3
- package/dist/compiler/webgpu.cjs +4 -4
- package/dist/compiler/webgpu.js +3 -3
- package/dist/debugger.cjs +5 -5
- package/dist/debugger.js +3 -3
- package/dist/dist-ACXG6IH5.cjs +3113 -0
- package/dist/dist-VD4L6V7Q.js +3076 -0
- package/dist/index.cjs +1894 -559
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1448 -113
- 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/src-4ROC227P.cjs +2094 -0
- package/dist/src-HCCCSYP7.js +2073 -0
- package/dist/traits/botanical-lotus.cjs +162 -10
- package/dist/traits/botanical-lotus.d.ts +330 -0
- package/dist/traits/botanical-lotus.js +4 -1
- package/dist/traits/index.cjs +610 -455
- package/dist/traits/index.js +9 -5
- package/package.json +23 -23
- package/dist/HoloScriptRuntime-3URVTKPJ.js +0 -10
- package/dist/chunk-VECQYRXL.js +0 -474
- package/dist/chunk-WDT3JTGM.cjs +0 -483
|
@@ -5,6 +5,9 @@ import { __esm } from './chunk-OL46QLBJ.js';
|
|
|
5
5
|
function esc(value, target) {
|
|
6
6
|
return escapeStringValue(value, target);
|
|
7
7
|
}
|
|
8
|
+
function isPhysicalMaterial(mat) {
|
|
9
|
+
return PHYSICAL_MATERIAL_KEYS.some((k) => mat[k] !== void 0);
|
|
10
|
+
}
|
|
8
11
|
function compileMaterialBlock(block) {
|
|
9
12
|
const type = block.keyword === "unlit_material" ? "unlit" : block.keyword === "shader" ? "shader" : "pbr";
|
|
10
13
|
const textureMaps = {};
|
|
@@ -26,6 +29,17 @@ function compileMaterialBlock(block) {
|
|
|
26
29
|
ior: otherProps.ior,
|
|
27
30
|
emissiveColor: otherProps.emissive_color,
|
|
28
31
|
emissiveIntensity: otherProps.emissive_intensity,
|
|
32
|
+
clearcoat: otherProps.clearcoat ?? otherProps.clear_coat,
|
|
33
|
+
clearcoatRoughness: otherProps.clearcoat_roughness ?? otherProps.clearcoatRoughness,
|
|
34
|
+
transmission: otherProps.transmission,
|
|
35
|
+
thickness: otherProps.thickness,
|
|
36
|
+
sheen: otherProps.sheen,
|
|
37
|
+
sheenColor: otherProps.sheen_color ?? otherProps.sheenColor,
|
|
38
|
+
sheenRoughness: otherProps.sheen_roughness ?? otherProps.sheenRoughness,
|
|
39
|
+
specularIntensity: otherProps.specular_intensity ?? otherProps.specularIntensity,
|
|
40
|
+
iridescence: otherProps.iridescence,
|
|
41
|
+
attenuationColor: otherProps.attenuation_color ?? otherProps.attenuationColor,
|
|
42
|
+
attenuationDistance: otherProps.attenuation_distance ?? otherProps.attenuationDistance,
|
|
29
43
|
textureMaps,
|
|
30
44
|
traits: block.traits || []
|
|
31
45
|
};
|
|
@@ -244,6 +258,23 @@ function materialToR3F(mat, tier) {
|
|
|
244
258
|
const propName = type.replace(/_map$/, "Map").replace(/^albedo/, "");
|
|
245
259
|
return `${propName}={useTexture("${path}")}`;
|
|
246
260
|
}).join(" ");
|
|
261
|
+
if (isPhysicalMaterial(mat)) {
|
|
262
|
+
const physical = [
|
|
263
|
+
mat.ior !== void 0 ? `ior={${mat.ior}}` : "",
|
|
264
|
+
mat.clearcoat !== void 0 ? `clearcoat={${mat.clearcoat}}` : "",
|
|
265
|
+
mat.clearcoatRoughness !== void 0 ? `clearcoatRoughness={${mat.clearcoatRoughness}}` : "",
|
|
266
|
+
mat.transmission !== void 0 ? `transmission={${mat.transmission}}` : "",
|
|
267
|
+
mat.thickness !== void 0 ? `thickness={${mat.thickness}}` : "",
|
|
268
|
+
mat.sheen !== void 0 ? `sheen={${mat.sheen}}` : "",
|
|
269
|
+
mat.sheenColor ? `sheenColor="${mat.sheenColor}"` : "",
|
|
270
|
+
mat.sheenRoughness !== void 0 ? `sheenRoughness={${mat.sheenRoughness}}` : "",
|
|
271
|
+
mat.specularIntensity !== void 0 ? `specularIntensity={${mat.specularIntensity}}` : "",
|
|
272
|
+
mat.iridescence !== void 0 ? `iridescence={${mat.iridescence}}` : "",
|
|
273
|
+
mat.attenuationColor ? `attenuationColor="${mat.attenuationColor}"` : "",
|
|
274
|
+
mat.attenuationDistance !== void 0 ? `attenuationDistance={${mat.attenuationDistance}}` : ""
|
|
275
|
+
].filter(Boolean).join(" ");
|
|
276
|
+
return `<meshPhysicalMaterial ${props} ${physical} ${textures} />`;
|
|
277
|
+
}
|
|
247
278
|
return `<meshStandardMaterial ${props} ${textures} />`;
|
|
248
279
|
}
|
|
249
280
|
function materialToUSD(mat) {
|
|
@@ -3799,15 +3830,28 @@ function hexToRGBA(hex, alpha) {
|
|
|
3799
3830
|
function getRequiredCapability() {
|
|
3800
3831
|
return ANSCapabilityPath.DOMAIN_BLOCK;
|
|
3801
3832
|
}
|
|
3802
|
-
var DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY;
|
|
3833
|
+
var PHYSICAL_MATERIAL_KEYS, DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY;
|
|
3803
3834
|
var init_DomainBlockCompilerMixin = __esm({
|
|
3804
3835
|
"src/compiler/DomainBlockCompilerMixin.ts"() {
|
|
3805
3836
|
init_CompilerBase();
|
|
3806
3837
|
init_ANSNamespace();
|
|
3838
|
+
PHYSICAL_MATERIAL_KEYS = [
|
|
3839
|
+
"clearcoat",
|
|
3840
|
+
"clearcoatRoughness",
|
|
3841
|
+
"transmission",
|
|
3842
|
+
"thickness",
|
|
3843
|
+
"sheen",
|
|
3844
|
+
"sheenColor",
|
|
3845
|
+
"sheenRoughness",
|
|
3846
|
+
"specularIntensity",
|
|
3847
|
+
"iridescence",
|
|
3848
|
+
"attenuationColor",
|
|
3849
|
+
"attenuationDistance"
|
|
3850
|
+
];
|
|
3807
3851
|
DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = "/compile/mixin/domain-block";
|
|
3808
3852
|
}
|
|
3809
3853
|
});
|
|
3810
3854
|
|
|
3811
|
-
export { DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY, architectureToGodot, architectureToR3F, architectureToUSDA, architectureToUnity, architectureToVRChat, audioSourceToAndroidXR, audioSourceToBabylon, audioSourceToGodot, audioSourceToPlayCanvas, audioSourceToR3F, audioSourceToUSD, audioSourceToUnity, audioSourceToUnreal, audioSourceToVisionOS, compileArchitectureBlock, compileAudioSourceBlock, compileDataVizBlock, compileDomainBlocks, compileEducationBlock, compileHealthcareBlock, compileInputBlock, compileIoTBlock, compileMaterialBlock, compileMusicBlock, compileNarrativeBlock, compileNavigationBlock, compileParticleBlock, compilePaymentBlock, compilePhysicsBlock, compilePostProcessingBlock, compileProceduralBlock, compileRenderingBlock, compileRoboticsBlock, compileSimulationBlock, compileWeatherBlock, compileWeb3Block, datavizToGodot, datavizToR3F, datavizToUSDA, datavizToUnity, datavizToVRChat, educationToGodot, educationToR3F, educationToUSDA, educationToUnity, educationToVRChat, getRequiredCapability, healthcareToGodot, healthcareToR3F, healthcareToUSDA, healthcareToUnity, healthcareToVRChat, init_DomainBlockCompilerMixin, inputToGodot, inputToR3F, inputToUSDA, inputToUnity, inputToVRChat, iotToGodot, iotToR3F, iotToUSDA, iotToUnity, iotToVRChat, materialToAndroidXR, materialToBabylon, materialToGLTF, materialToGodot, materialToPlayCanvas, materialToR3F, materialToSDF, materialToUSD, materialToUnity, materialToUnreal, materialToVRChat, materialToVisionOS, materialToWebGPU, musicToGodot, musicToR3F, musicToUSDA, musicToUnity, musicToVRChat, narrativeToGodot, narrativeToR3F, narrativeToUSDA, narrativeToUnity, narrativeToVRChat, navigationToGodot, navigationToR3F, navigationToUSDA, navigationToUnity, navigationToVRChat, particlesToAndroidXR, particlesToBabylon, particlesToGodot, particlesToPlayCanvas, particlesToR3F, particlesToUSD, particlesToUnity, particlesToUnreal, particlesToVisionOS, paymentToGodot, paymentToR3F, paymentToUSDA, paymentToUnity, paymentToVRChat, physicsToAndroidXR, physicsToBabylon, physicsToGodot, physicsToPlayCanvas, physicsToR3F, physicsToSDF, physicsToURDF, physicsToUnity, physicsToUnreal, physicsToVisionOS, postProcessingToBabylon, postProcessingToGodot, postProcessingToR3F, postProcessingToUSD, postProcessingToUnity, postProcessingToUnreal, proceduralToGodot, proceduralToR3F, proceduralToUSDA, proceduralToUnity, proceduralToVRChat, renderingToGodot, renderingToR3F, renderingToUSDA, renderingToUnity, renderingToVRChat, roboticsToGodot, roboticsToR3F, roboticsToUSDA, roboticsToUnity, roboticsToVRChat, simulationToR3F, weatherToAndroidXR, weatherToGodot, weatherToR3F, weatherToUSD, weatherToUnity, weatherToUnreal, web3ToGodot, web3ToR3F, web3ToUSDA, web3ToUnity, web3ToVRChat };
|
|
3812
|
-
//# sourceMappingURL=chunk-
|
|
3813
|
-
//# sourceMappingURL=chunk-
|
|
3855
|
+
export { DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY, architectureToGodot, architectureToR3F, architectureToUSDA, architectureToUnity, architectureToVRChat, audioSourceToAndroidXR, audioSourceToBabylon, audioSourceToGodot, audioSourceToPlayCanvas, audioSourceToR3F, audioSourceToUSD, audioSourceToUnity, audioSourceToUnreal, audioSourceToVisionOS, compileArchitectureBlock, compileAudioSourceBlock, compileDataVizBlock, compileDomainBlocks, compileEducationBlock, compileHealthcareBlock, compileInputBlock, compileIoTBlock, compileMaterialBlock, compileMusicBlock, compileNarrativeBlock, compileNavigationBlock, compileParticleBlock, compilePaymentBlock, compilePhysicsBlock, compilePostProcessingBlock, compileProceduralBlock, compileRenderingBlock, compileRoboticsBlock, compileSimulationBlock, compileWeatherBlock, compileWeb3Block, datavizToGodot, datavizToR3F, datavizToUSDA, datavizToUnity, datavizToVRChat, educationToGodot, educationToR3F, educationToUSDA, educationToUnity, educationToVRChat, getRequiredCapability, healthcareToGodot, healthcareToR3F, healthcareToUSDA, healthcareToUnity, healthcareToVRChat, init_DomainBlockCompilerMixin, inputToGodot, inputToR3F, inputToUSDA, inputToUnity, inputToVRChat, iotToGodot, iotToR3F, iotToUSDA, iotToUnity, iotToVRChat, isPhysicalMaterial, materialToAndroidXR, materialToBabylon, materialToGLTF, materialToGodot, materialToPlayCanvas, materialToR3F, materialToSDF, materialToUSD, materialToUnity, materialToUnreal, materialToVRChat, materialToVisionOS, materialToWebGPU, musicToGodot, musicToR3F, musicToUSDA, musicToUnity, musicToVRChat, narrativeToGodot, narrativeToR3F, narrativeToUSDA, narrativeToUnity, narrativeToVRChat, navigationToGodot, navigationToR3F, navigationToUSDA, navigationToUnity, navigationToVRChat, particlesToAndroidXR, particlesToBabylon, particlesToGodot, particlesToPlayCanvas, particlesToR3F, particlesToUSD, particlesToUnity, particlesToUnreal, particlesToVisionOS, paymentToGodot, paymentToR3F, paymentToUSDA, paymentToUnity, paymentToVRChat, physicsToAndroidXR, physicsToBabylon, physicsToGodot, physicsToPlayCanvas, physicsToR3F, physicsToSDF, physicsToURDF, physicsToUnity, physicsToUnreal, physicsToVisionOS, postProcessingToBabylon, postProcessingToGodot, postProcessingToR3F, postProcessingToUSD, postProcessingToUnity, postProcessingToUnreal, proceduralToGodot, proceduralToR3F, proceduralToUSDA, proceduralToUnity, proceduralToVRChat, renderingToGodot, renderingToR3F, renderingToUSDA, renderingToUnity, renderingToVRChat, roboticsToGodot, roboticsToR3F, roboticsToUSDA, roboticsToUnity, roboticsToVRChat, simulationToR3F, weatherToAndroidXR, weatherToGodot, weatherToR3F, weatherToUSD, weatherToUnity, weatherToUnreal, web3ToGodot, web3ToR3F, web3ToUSDA, web3ToUnity, web3ToVRChat };
|
|
3856
|
+
//# sourceMappingURL=chunk-BOVPWH4H.js.map
|
|
3857
|
+
//# sourceMappingURL=chunk-BOVPWH4H.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GZG4KA4E.js';
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToUnity, compileInputBlock, navigationToUnity, compileNavigationBlock, renderingToUnity, compileRenderingBlock, proceduralToUnity, compileProceduralBlock, web3ToUnity, compileWeb3Block, architectureToUnity, compileArchitectureBlock, musicToUnity, compileMusicBlock, educationToUnity, compileEducationBlock, datavizToUnity, compileDataVizBlock, iotToUnity, compileIoTBlock, compileRoboticsBlock, roboticsToUnity, compileHealthcareBlock, healthcareToUnity, compilePaymentBlock, paymentToUnity, compileNarrativeBlock, narrativeToUnity, compileWeatherBlock, weatherToUnity, compileAudioSourceBlock, audioSourceToUnity, compilePostProcessingBlock, postProcessingToUnity, compileParticleBlock, particlesToUnity, compilePhysicsBlock, physicsToUnity, compileMaterialBlock, materialToUnity } from './chunk-
|
|
2
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, inputToUnity, compileInputBlock, navigationToUnity, compileNavigationBlock, renderingToUnity, compileRenderingBlock, proceduralToUnity, compileProceduralBlock, web3ToUnity, compileWeb3Block, architectureToUnity, compileArchitectureBlock, musicToUnity, compileMusicBlock, educationToUnity, compileEducationBlock, datavizToUnity, compileDataVizBlock, iotToUnity, compileIoTBlock, compileRoboticsBlock, roboticsToUnity, compileHealthcareBlock, healthcareToUnity, compilePaymentBlock, paymentToUnity, compileNarrativeBlock, narrativeToUnity, compileWeatherBlock, weatherToUnity, compileAudioSourceBlock, audioSourceToUnity, compilePostProcessingBlock, postProcessingToUnity, compileParticleBlock, particlesToUnity, compilePhysicsBlock, physicsToUnity, compileMaterialBlock, materialToUnity } from './chunk-BOVPWH4H.js';
|
|
3
3
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
4
4
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
5
5
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
@@ -774,5 +774,5 @@ var init_UnityCompiler = __esm({
|
|
|
774
774
|
});
|
|
775
775
|
|
|
776
776
|
export { UnityCompiler, UnityCompiler_exports, init_UnityCompiler };
|
|
777
|
-
//# sourceMappingURL=chunk-
|
|
778
|
-
//# sourceMappingURL=chunk-
|
|
777
|
+
//# sourceMappingURL=chunk-CCATWPXM.js.map
|
|
778
|
+
//# sourceMappingURL=chunk-CCATWPXM.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToWebGPU } from './chunk-
|
|
1
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock, materialToWebGPU } from './chunk-BOVPWH4H.js';
|
|
2
2
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
3
3
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
4
4
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
@@ -665,5 +665,5 @@ var init_WebGPUCompiler = __esm({
|
|
|
665
665
|
});
|
|
666
666
|
|
|
667
667
|
export { WebGPUCompiler, WebGPUCompiler_exports, init_WebGPUCompiler };
|
|
668
|
-
//# sourceMappingURL=chunk-
|
|
669
|
-
//# sourceMappingURL=chunk-
|
|
668
|
+
//# sourceMappingURL=chunk-CMT5NMMS.js.map
|
|
669
|
+
//# sourceMappingURL=chunk-CMT5NMMS.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkAIA52I7T_cjs = require('./chunk-AIA52I7T.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
|
|
5
5
|
var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
|
|
6
6
|
var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
|
|
7
7
|
var ans = require('@holoscript/core-types/ans');
|
|
@@ -16,7 +16,7 @@ var init_OpenXRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
16
16
|
"src/compiler/OpenXRCompiler.ts"() {
|
|
17
17
|
chunkKKP7JKN4_cjs.init_CompilerBase();
|
|
18
18
|
chunkAIA52I7T_cjs.init_PlatformConditionalCompilerMixin();
|
|
19
|
-
|
|
19
|
+
chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
|
|
20
20
|
exports.OpenXRCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
|
|
21
21
|
constructor(options = {}) {
|
|
22
22
|
super();
|
|
@@ -136,32 +136,32 @@ var init_OpenXRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
136
136
|
if (domainBlocks.length > 0) {
|
|
137
137
|
this.emit("");
|
|
138
138
|
this.emit("// === v4.2 Domain Blocks ===");
|
|
139
|
-
const compiled =
|
|
139
|
+
const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
|
|
140
140
|
// @ts-expect-error During migration
|
|
141
141
|
domainBlocks,
|
|
142
142
|
{
|
|
143
143
|
material: (block) => {
|
|
144
|
-
const m =
|
|
144
|
+
const m = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
|
|
145
145
|
return `// Material: "${this.escapeStringValue(m.name, "TypeScript")}" type=${m.type} baseColor=${m.baseColor || "none"} roughness=${m.roughness ?? "default"} metallic=${m.metallic ?? "default"}`;
|
|
146
146
|
},
|
|
147
147
|
physics: (block) => {
|
|
148
|
-
const p =
|
|
148
|
+
const p = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
|
|
149
149
|
return `// Physics: ${p.keyword} "${p.name || ""}" colliders=${p.colliders?.length || 0} rigidbody=${!!p.rigidbody}`;
|
|
150
150
|
},
|
|
151
151
|
vfx: (block) => {
|
|
152
|
-
const ps =
|
|
152
|
+
const ps = chunkHKEXJUWS_cjs.compileParticleBlock(block);
|
|
153
153
|
return `// Particles: "${this.escapeStringValue(ps.name, "TypeScript")}" rate=${ps.properties.rate || "default"} modules=${ps.modules.length}`;
|
|
154
154
|
},
|
|
155
155
|
postfx: (block) => {
|
|
156
|
-
const pp =
|
|
156
|
+
const pp = chunkHKEXJUWS_cjs.compilePostProcessingBlock(block);
|
|
157
157
|
return `// PostFX: ${pp.keyword} effects=[${pp.effects.map((e) => e.type).join(", ")}]`;
|
|
158
158
|
},
|
|
159
159
|
audio: (block) => {
|
|
160
|
-
const a =
|
|
160
|
+
const a = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
|
|
161
161
|
return `// Audio: "${this.escapeStringValue(a.name, "TypeScript")}" (${a.keyword}) clip=${a.properties.clip || "none"}`;
|
|
162
162
|
},
|
|
163
163
|
weather: (block) => {
|
|
164
|
-
const w =
|
|
164
|
+
const w = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
|
|
165
165
|
return `// Weather: ${w.keyword} layers=[${w.layers.map((l) => l.type).join(", ")}]`;
|
|
166
166
|
}
|
|
167
167
|
},
|
|
@@ -1045,5 +1045,5 @@ var init_OpenXRCompiler = chunkHCCQLAA4_cjs.__esm({
|
|
|
1045
1045
|
|
|
1046
1046
|
exports.OpenXRCompiler_exports = OpenXRCompiler_exports;
|
|
1047
1047
|
exports.init_OpenXRCompiler = init_OpenXRCompiler;
|
|
1048
|
-
//# sourceMappingURL=chunk-
|
|
1049
|
-
//# sourceMappingURL=chunk-
|
|
1048
|
+
//# sourceMappingURL=chunk-CR4FMIWL.cjs.map
|
|
1049
|
+
//# sourceMappingURL=chunk-CR4FMIWL.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GZG4KA4E.js';
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUnreal, compileAudioSourceBlock, audioSourceToUnreal, compilePostProcessingBlock, postProcessingToUnreal, compileParticleBlock, particlesToUnreal, compilePhysicsBlock, physicsToUnreal, compileMaterialBlock, materialToUnreal } from './chunk-
|
|
2
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, weatherToUnreal, compileAudioSourceBlock, audioSourceToUnreal, compilePostProcessingBlock, postProcessingToUnreal, compileParticleBlock, particlesToUnreal, compilePhysicsBlock, physicsToUnreal, compileMaterialBlock, materialToUnreal } from './chunk-BOVPWH4H.js';
|
|
3
3
|
import { createTestCompilerToken, init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
4
4
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
5
5
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
@@ -710,5 +710,5 @@ var init_UnrealCompiler = __esm({
|
|
|
710
710
|
});
|
|
711
711
|
|
|
712
712
|
export { UnrealCompiler, UnrealCompiler_exports, compileToUnreal, init_UnrealCompiler };
|
|
713
|
-
//# sourceMappingURL=chunk-
|
|
714
|
-
//# sourceMappingURL=chunk-
|
|
713
|
+
//# sourceMappingURL=chunk-D3STJ56J.js.map
|
|
714
|
+
//# sourceMappingURL=chunk-D3STJ56J.js.map
|
|
@@ -1,37 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkGJNCFRJU_cjs = require('./chunk-GJNCFRJU.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkYDPEHCCI_cjs = require('./chunk-YDPEHCCI.cjs');
|
|
5
5
|
var chunkJIYN45TV_cjs = require('./chunk-JIYN45TV.cjs');
|
|
6
6
|
var chunkTVHSPJ4N_cjs = require('./chunk-TVHSPJ4N.cjs');
|
|
7
7
|
var chunkILRBGFVD_cjs = require('./chunk-ILRBGFVD.cjs');
|
|
8
8
|
var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
|
|
9
9
|
var ws = require('ws');
|
|
10
|
-
var orbital = require('@holoscript/engine/orbital');
|
|
11
10
|
var mesh = require('@holoscript/mesh');
|
|
12
|
-
var engineRuntime = require('@holoscript/engine/runtime');
|
|
13
11
|
var learning = require('@holoscript/framework/learning');
|
|
14
12
|
|
|
15
|
-
function _interopNamespace(e) {
|
|
16
|
-
if (e && e.__esModule) return e;
|
|
17
|
-
var n = Object.create(null);
|
|
18
|
-
if (e) {
|
|
19
|
-
Object.keys(e).forEach(function (k) {
|
|
20
|
-
if (k !== 'default') {
|
|
21
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
22
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function () { return e[k]; }
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
n.default = e;
|
|
30
|
-
return Object.freeze(n);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
var engineRuntime__namespace = /*#__PURE__*/_interopNamespace(engineRuntime);
|
|
34
|
-
|
|
35
13
|
// src/HoloScriptRuntime.ts
|
|
36
14
|
chunkE7JP3BS3_cjs.init_safeJsonParse();
|
|
37
15
|
|
|
@@ -3028,6 +3006,17 @@ var ExtensionRegistry = class {
|
|
|
3028
3006
|
};
|
|
3029
3007
|
|
|
3030
3008
|
// src/HoloScriptRuntime.ts
|
|
3009
|
+
var TimeManager = chunkYDPEHCCI_cjs.lazyPeerSymbol(
|
|
3010
|
+
"@holoscript/engine/orbital",
|
|
3011
|
+
"TimeManager"
|
|
3012
|
+
);
|
|
3013
|
+
var AttentionEngine = chunkYDPEHCCI_cjs.lazyPeerSymbol(
|
|
3014
|
+
"@holoscript/engine/orbital",
|
|
3015
|
+
"AttentionEngine"
|
|
3016
|
+
);
|
|
3017
|
+
var engineRuntime = chunkYDPEHCCI_cjs.definePeerNamespace(
|
|
3018
|
+
"@holoscript/engine/runtime"
|
|
3019
|
+
);
|
|
3031
3020
|
var RUNTIME_SECURITY_LIMITS = {
|
|
3032
3021
|
maxExecutionDepth: 50,
|
|
3033
3022
|
maxTotalNodes: 1e3,
|
|
@@ -3054,15 +3043,15 @@ var HoloScriptRuntime = class {
|
|
|
3054
3043
|
this.context = createEmptyContext();
|
|
3055
3044
|
this.currentScope = { variables: this.context.variables };
|
|
3056
3045
|
this.builtinFunctions = this.initBuiltins(customFunctions);
|
|
3057
|
-
this.agentPool = new
|
|
3046
|
+
this.agentPool = new engineRuntime.ObjectPool(
|
|
3058
3047
|
() => new HoloScriptAgentRuntime(),
|
|
3059
3048
|
// Preallocation mode (optional args)
|
|
3060
3049
|
(agent) => agent.destroy(),
|
|
3061
3050
|
50
|
|
3062
3051
|
);
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3052
|
+
engineRuntime.registerVoiceSynthesizer("default", new engineRuntime.BaseVoiceSynthesizer());
|
|
3053
|
+
engineRuntime.registerEmotionDetector("default", new engineRuntime.LocalEmotionDetector());
|
|
3054
|
+
engineRuntime.registerSpeechRecognizer("default", new engineRuntime.MockSpeechRecognizer());
|
|
3066
3055
|
for (const [name, fn] of this.builtinFunctions) {
|
|
3067
3056
|
this.context.functions.set(name, ((...spreadArgs) => fn(spreadArgs)));
|
|
3068
3057
|
}
|
|
@@ -3085,7 +3074,7 @@ var HoloScriptRuntime = class {
|
|
|
3085
3074
|
});
|
|
3086
3075
|
}
|
|
3087
3076
|
});
|
|
3088
|
-
return
|
|
3077
|
+
return AttentionEngine.getTopKEntities(
|
|
3089
3078
|
observerPos,
|
|
3090
3079
|
entities,
|
|
3091
3080
|
topK
|
|
@@ -3094,8 +3083,8 @@ var HoloScriptRuntime = class {
|
|
|
3094
3083
|
this.traitHandlers.set("mitosis", chunkTVHSPJ4N_cjs.mitosisHandler);
|
|
3095
3084
|
this.traitHandlers.set("orbital", chunkTVHSPJ4N_cjs.orbitalHandler);
|
|
3096
3085
|
this.extensionRegistry = new ExtensionRegistry(this);
|
|
3097
|
-
|
|
3098
|
-
|
|
3086
|
+
engineRuntime.stateMachineInterpreter.setHookExecutor((code) => this.evaluateExpression(code));
|
|
3087
|
+
engineRuntime.stateMachineInterpreter.setGuardEvaluator((expr) => this.evaluateExpression(expr));
|
|
3099
3088
|
}
|
|
3100
3089
|
/**
|
|
3101
3090
|
* Initialize built-in functions
|
|
@@ -3557,10 +3546,10 @@ var HoloScriptRuntime = class {
|
|
|
3557
3546
|
// contract requires Promise<void> so trait-side emits can `await`
|
|
3558
3547
|
// through a unified interface. Wrap with Promise.resolve.
|
|
3559
3548
|
globalBusEmit: (event, data) => {
|
|
3560
|
-
|
|
3549
|
+
chunkYDPEHCCI_cjs.getSharedEventBus().emit(event, data);
|
|
3561
3550
|
return Promise.resolve();
|
|
3562
3551
|
},
|
|
3563
|
-
sendStateMachineEvent: (id, event) =>
|
|
3552
|
+
sendStateMachineEvent: (id, event) => engineRuntime.stateMachineInterpreter.sendEvent(id, event)
|
|
3564
3553
|
};
|
|
3565
3554
|
}
|
|
3566
3555
|
/**
|
|
@@ -3713,7 +3702,7 @@ var HoloScriptRuntime = class {
|
|
|
3713
3702
|
try {
|
|
3714
3703
|
this.wss = new ws.WebSocketServer({ port });
|
|
3715
3704
|
chunkILRBGFVD_cjs.logger.info(`[Visualizer] WebSocket server started on port ${port}`);
|
|
3716
|
-
this.timeManager = new
|
|
3705
|
+
this.timeManager = new TimeManager(/* @__PURE__ */ new Date());
|
|
3717
3706
|
this.timeManager.onUpdate((julianDate, date) => {
|
|
3718
3707
|
this.updateTraits(julianDate);
|
|
3719
3708
|
this.broadcast("time_update", {
|
|
@@ -3861,12 +3850,12 @@ var HoloScriptRuntime = class {
|
|
|
3861
3850
|
evaluateHoloExpression: (expr, scopeOverride) => this.evaluateHoloExpression(expr, scopeOverride),
|
|
3862
3851
|
telemetry: {
|
|
3863
3852
|
setGauge: (name, value) => {
|
|
3864
|
-
|
|
3853
|
+
chunkYDPEHCCI_cjs.telemetry.setGauge(name, value);
|
|
3865
3854
|
},
|
|
3866
3855
|
incrementCounter: (name, value, labels) => {
|
|
3867
|
-
|
|
3856
|
+
chunkYDPEHCCI_cjs.telemetry.incrementCounter(name, value, labels);
|
|
3868
3857
|
},
|
|
3869
|
-
measureLatency: (name, fn) =>
|
|
3858
|
+
measureLatency: (name, fn) => chunkYDPEHCCI_cjs.telemetry.measureLatency(name, fn),
|
|
3870
3859
|
executionDepth: () => this.context.executionStack.length
|
|
3871
3860
|
}
|
|
3872
3861
|
};
|
|
@@ -4306,5 +4295,5 @@ var HoloScriptRuntime = class {
|
|
|
4306
4295
|
|
|
4307
4296
|
exports.HoloScriptAgentRuntime = HoloScriptAgentRuntime;
|
|
4308
4297
|
exports.HoloScriptRuntime = HoloScriptRuntime;
|
|
4309
|
-
//# sourceMappingURL=chunk-
|
|
4310
|
-
//# sourceMappingURL=chunk-
|
|
4298
|
+
//# sourceMappingURL=chunk-DAKRKDZV.cjs.map
|
|
4299
|
+
//# sourceMappingURL=chunk-DAKRKDZV.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { init_TraitCompositor, TraitCompositor } from './chunk-4C57PR42.js';
|
|
2
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToPlayCanvas, compilePostProcessingBlock, compileParticleBlock, particlesToPlayCanvas, compilePhysicsBlock, physicsToPlayCanvas, compileMaterialBlock, materialToPlayCanvas } from './chunk-
|
|
2
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileWeatherBlock, compileAudioSourceBlock, audioSourceToPlayCanvas, compilePostProcessingBlock, compileParticleBlock, particlesToPlayCanvas, compilePhysicsBlock, physicsToPlayCanvas, compileMaterialBlock, materialToPlayCanvas } from './chunk-BOVPWH4H.js';
|
|
3
3
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
4
4
|
import { __export, __esm } from './chunk-OL46QLBJ.js';
|
|
5
5
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
@@ -752,5 +752,5 @@ var init_PlayCanvasCompiler = __esm({
|
|
|
752
752
|
});
|
|
753
753
|
|
|
754
754
|
export { PlayCanvasCompiler, PlayCanvasCompiler_exports, init_PlayCanvasCompiler };
|
|
755
|
-
//# sourceMappingURL=chunk-
|
|
756
|
-
//# sourceMappingURL=chunk-
|
|
755
|
+
//# sourceMappingURL=chunk-DHO2YRIM.js.map
|
|
756
|
+
//# sourceMappingURL=chunk-DHO2YRIM.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { lightingHandler, materialHandler, renderingHandler, shaderHandler } from './chunk-QPOQ7VPI.js';
|
|
2
2
|
import { webcamGazeHandler } from './chunk-TDCNJHWO.js';
|
|
3
|
-
import { botanicalLotusHandler } from './chunk-VECQYRXL.js';
|
|
4
3
|
import { SimulationSolverFactory } from './chunk-YQELFNJV.js';
|
|
5
4
|
import { createTensor, createNoOpInferenceAdapter, add, matmul } from './chunk-FHP6LXJS.js';
|
|
6
5
|
import { absorbHandler, hotReloadHandler, scriptTestHandler } from './chunk-2M2DPHKB.js';
|
|
6
|
+
import { init_BotanicalLotusTrait, botanicalLotusHandler } from './chunk-QRPRIJ2W.js';
|
|
7
7
|
import { mitosisHandler, embeddingHandler, jepObjectiveHandler, orbitalHandler } from './chunk-H652NHX5.js';
|
|
8
8
|
import { logger } from './chunk-PHENW4MQ.js';
|
|
9
9
|
import { init_safeJsonParse, readJson } from './chunk-VVKVQZI6.js';
|
|
@@ -19771,7 +19771,7 @@ function createNetworkedTrait(config) {
|
|
|
19771
19771
|
}
|
|
19772
19772
|
|
|
19773
19773
|
// src/traits/NetworkedTraitHandler.ts
|
|
19774
|
-
var
|
|
19774
|
+
var _syncTierRates = null;
|
|
19775
19775
|
var handlerStates = /* @__PURE__ */ new Map();
|
|
19776
19776
|
function getNodeKey(node) {
|
|
19777
19777
|
return node.id || `__anon_${Math.random().toString(36).slice(2, 8)}`;
|
|
@@ -19810,6 +19810,10 @@ var networkedHandler = {
|
|
|
19810
19810
|
// onAttach
|
|
19811
19811
|
// ===========================================================================
|
|
19812
19812
|
onAttach(node, config, context) {
|
|
19813
|
+
void import('@holoscript/mesh').then((m) => {
|
|
19814
|
+
_syncTierRates ?? (_syncTierRates = m.SYNC_TIER_RATES);
|
|
19815
|
+
}).catch(() => {
|
|
19816
|
+
});
|
|
19813
19817
|
const key = getNodeKey(node);
|
|
19814
19818
|
const trait = new NetworkedTrait({
|
|
19815
19819
|
mode: config.mode,
|
|
@@ -19881,14 +19885,12 @@ var networkedHandler = {
|
|
|
19881
19885
|
// ===========================================================================
|
|
19882
19886
|
// onUpdate — per-frame sync
|
|
19883
19887
|
// ===========================================================================
|
|
19884
|
-
|
|
19888
|
+
onUpdate(node, config, context, delta) {
|
|
19885
19889
|
const key = getNodeKey(node);
|
|
19886
19890
|
const state = handlerStates.get(key);
|
|
19887
19891
|
if (!state || !state.registered) return;
|
|
19888
19892
|
const trait = state.trait;
|
|
19889
|
-
|
|
19890
|
-
const { SYNC_TIER_RATES } = _mesh2;
|
|
19891
|
-
const baseSyncRate = SYNC_TIER_RATES[config.syncTier] ?? config.syncRate;
|
|
19893
|
+
const baseSyncRate = _syncTierRates?.[config.syncTier] ?? config.syncRate;
|
|
19892
19894
|
const effectiveRate = baseSyncRate * state.priorityWeight;
|
|
19893
19895
|
const syncIntervalMs = effectiveRate > 0 ? 1e3 / effectiveRate : Infinity;
|
|
19894
19896
|
if (trait.isLocalOwner()) {
|
|
@@ -38499,7 +38501,7 @@ var characterHandler = {
|
|
|
38499
38501
|
if (typeof instance.onUpdate === "function") instance.onUpdate(node, ctx, dt);
|
|
38500
38502
|
}
|
|
38501
38503
|
};
|
|
38502
|
-
var
|
|
38504
|
+
var _mesh2 = null;
|
|
38503
38505
|
var DEFAULT_TRAIT_CONFIG = {
|
|
38504
38506
|
mechanism: "simple_majority",
|
|
38505
38507
|
timeout: 5e3
|
|
@@ -38522,8 +38524,8 @@ var ConsensusTrait = class extends EventEmitter {
|
|
|
38522
38524
|
*/
|
|
38523
38525
|
async start() {
|
|
38524
38526
|
if (this.isStarted) return;
|
|
38525
|
-
|
|
38526
|
-
const { RaftConsensus, ConsensusManager } =
|
|
38527
|
+
_mesh2 ?? (_mesh2 = await import('@holoscript/mesh'));
|
|
38528
|
+
const { RaftConsensus, ConsensusManager } = _mesh2;
|
|
38527
38529
|
const nodeId = this.config.nodeId || this.entityId;
|
|
38528
38530
|
const mechanism = this.config.mechanism || "simple_majority";
|
|
38529
38531
|
if (mechanism === "raft") {
|
|
@@ -54814,6 +54816,9 @@ var gotchaHandler = {
|
|
|
54814
54816
|
}
|
|
54815
54817
|
};
|
|
54816
54818
|
|
|
54819
|
+
// src/traits/VRTraitSystem.ts
|
|
54820
|
+
init_BotanicalLotusTrait();
|
|
54821
|
+
|
|
54817
54822
|
// src/traits/FluidSimulationTrait.ts
|
|
54818
54823
|
var SpatialHash = class {
|
|
54819
54824
|
constructor(cellSize) {
|
|
@@ -56156,5 +56161,5 @@ var VRTraitRegistry = class {
|
|
|
56156
56161
|
var vrTraitRegistry = new VRTraitRegistry();
|
|
56157
56162
|
|
|
56158
56163
|
export { AIDriverTrait, ALL_CIRCUITS, ARKIT_MOUTH_SHAPES, AnimationTrait, BUILTIN_CIRCUITS, BarretenbergBackend, BehaviorTreeRunner, CARE_ETHICS_TRAIT, CRDTRoomTraitValidationError, CRDT_ROOM_TRAIT_DEFAULTS, CharacterTrait, ComponentType, ConsensusTrait, DEFAULT_ANIMATION_MAP, DEFAULT_AUTONOMY_GUARD_POLICY, DEFAULT_BEHAVIOR_FACT_TTL_ALERT_RULE, DEFAULT_EXPRESSION_PRESETS, DEFAULT_EXTERNAL_TIMEOUT_MS, DEFAULT_FOVEATED_BLEND, DEFAULT_FREQUENCY_BANDS, DEFAULT_REPUTATION_LEDGER_MAX_FACTS, DEFAULT_REPUTATION_LEDGER_TTL_DAYS, DEFAULT_SYNC_FIELD, DEFAULT_TRAIT_CONFIG2 as DEFAULT_TRAIT_CONFIG, DRAFT_DEFAULTS, DRAFT_TRAIT, DialogTrait, DraftManager, ECSWorld, EmotionDirectiveTrait, EnvironmentalAudioSystem, GEM_RESONANCE_ELEMENT_FREQUENCIES, GOAPPlanner, GOLDEN_ANGLE_DEG, IKTrait, InteractiveGraphTrait, JobQueuePersistence, JointTrait, LOCAL_WEBCAM_VIEW_ID, LipSyncTrait, LobbyTrait, MAX_EXPERIENCE_LOG_ENTRIES, MorphTrait, MultiviewGaussianRendererTrait, NetworkedTrait, OCULUS_VISEME_MAP, PIDControllerTrait, PressableTrait, REFERENCE_SPACE_CHAIN, REFUSED_CARE_OPTIMIZATION_TARGETS, RigidbodyTrait, SPATIAL_PREDICATE_CIRCUITS, SYNC_PRESETS, SandboxExecutionTrait, SlidableTrait, SpatialAwarenessTrait, SyncTierTrait, TIER_DEFAULTS, TriggerTrait, URDFRobotTrait, VRTraitRegistry, VoiceInputTrait, VoiceOutputTrait, VoronoiFractureSystem, WEATHER_PRESETS, aIDriverHandler, abTestHandler, abstain, accessibleHandler, advancedClothHandler, affinityHandler, agentDiscoveryHandler, agentMemoryHandler, agentMovementSystem, agentPortalHandler, aiInpaintingHandler, aiTextureGenHandler, aiUpscalingHandler, ainpcBrainHandler, alertHandler, altTextHandler, ambisonicsHandler, analyticsHandler, anchorHandler, applyFBXAxisConversion, applyStatModifiers, applyUSDAxisConversion, approve, audioMaterialHandler, audioOcclusionHandler, audioPortalHandler, auditLogHandler, autoVote, avatarEmbodimentHandler, behaviorTreeHandler, biofeedbackHandler, blackboardHandler, bloomReactiveHandler, bodyTrackingHandler, bufferHandler, buildBehaviorFactDisclosure, buoyancyHandler, cRDTRoomHandler, careEthicsHandler, chainHandler, characterHandler, choreographyHandler, circuitBreakerHandler, clothHandler, coLocatedHandler, compareSemVer, computeHandler, computePhyllotaxisPosition, computerUseHandler, consensusHandler, consentGateHandler, controlNetHandler, controllerInputHandler, controlnetHandler, createAIDriverTrait, createAnimationTrait, createApprovalRequest, createBaseMainnetAccountingAdapter, createBehaviorFactTtlAlertRule, createCRDTRoomTraitConfig, createCanBusAccountingAdapter, createCareField, createCharacterTrait, createConsensusTrait, createDialogTrait, createEdiX12AccountingAdapter, createEmotionDirectiveTrait, createHl7FhirAccountingAdapter, createIKTrait, createJointTrait, createLipSyncTrait, createLobbyTrait, createMorphTrait, createNetworkedTrait, createRepairLoop, createRigidbodyTrait, createRollbackCheckpoint, createSelectiveDisclosure, createSharedSpatialProvider, createSimulatedController, createSpatialAwarenessTrait, createTriggerTrait, createURDFRobotTrait, createVoiceInputTrait, createVoiceOutputTrait, cronHandler, dataBindingHandler, deriveBloomReactiveOutput, deriveLotusCenterPhase, deriveLotusGardenerSchedule, deriveLotusGenesisGate, deriveLotusGenesisSeed, deriveLotusPetalVisual, deriveLotusRootEmissive, deriveLotusStalkPosture, deriveWalkableNavmesh, destructionHandler, deviceProfiles, dialogHandler, dialogueHandler, diffusionRealtimeHandler, digitalTwinHandler, dropTableHandler, economyPrimitivesHandler, effectiveWeight, embeddingSearchHandler, emissiveAt, emotionDirectiveHandler, emotionHandler, emotionalVoiceHandler, encounterHandler, environmentalAudioHandler, evaluateAction, evaluateAutonomyGuard, evaluateCareEthicsTurn, extractLotusGenesisAnchorHash, extractPayload, eyeTrackedHandler, faceTrackingHandler, factionHandler, fbxHandler, feedbackLoopHandler, findReachablePath, findWalkableNodeAt, flowFieldHandler, fluidHandler, gardenerPulseJitter, gaussianSplatHandler, gemResonanceHandler, geospatialAnchorHandler, geospatialEnvHandler, gestureHandler, getActiveSessions, getAgentId, getAirAbsorption, getAuditLog, getCachedThingDescription, getCapabilities, getCareEthicsState, getEventHistory, getFBXAnimationStacks, getFBXBoneNames, getFBXMorphTargets, getFBXState, getGLTFAnimations, getGLTFMorphTargets, getGLTFState, getMQTTSinkClient, getMQTTSinkState, getMQTTSourceClient, getMQTTSourceState, getMyProposals, getMyVotes, getNegotiationMethods, getPredicateCircuitId, getSession, getUSDActiveVariant, getUSDAnimation, getUSDBlendShapes, getUSDJointNames, getUSDState, getUSDVariantSets, getWoTThingState, gltfHandler, goalOrientedHandler, gpuBufferHandler, gpuParticleHandler, gpuPhysicsHandler, granularMaterialHandler, handMenuHandler, handMeshAIHandler, handTrackingHandler, hapticCueHandler, hapticHandler, hasMQTTSinkTrait, hasMQTTSourceTrait, hasVoted, hasWoTThingTrait, hashGardenerSeed, hashSeed, headTrackedAudioHandler, heatmap3dHandler, highContrastHandler, hitlHandler, hrtfHandler, iKHandler, initiate, invalidateThingDescription, isConsentGranted, isFBXLoaded, isGLTFLoaded, isInSession, isMQTTSinkConnected, isMQTTSourceConnected, isReservedPaperId, isUSDLoaded, isUSDZ, isWalkableAt, jointHandler, layerAwareHandler, leave, lightEstimationHandler, lipSyncHandler, llmAgentHandler, lobbyHandler, localLLMHandler, lodSystem, lotusCenterHandler, lotusGardenerHandler, lotusGenesisTriggerHandler, lotusPetalHandler, lotusRootHandler, lotusStalkHandler, luckHandler, magnifiableHandler, marketplaceHandler, marketplaceIntegrationHandler, matchesCondition, materialXHandler, memoryHandler, meshDetectionHandler, messagingHandler, modifiedThreshold, morphHandler, motionReducedHandler, mqttSinkHandler, mqttSourceHandler, multiAgentHandler, multiviewGaussianRendererHandler, negotiationHandler, nerfHandler, networkedAvatarHandler, networkedHandler, neuralAnimationHandler, neuralForgeHandler, neuralLinkHandler, neuralUpscalingHandler, nftHandler, normalizeCenter, normalizeLotusSeed, normalizePointCloud, npcAIHandler, objectTrackingHandler, occlusionHandler, openXRHALHandler, parseCRDTRoomEntityConfig, parseCRDTRoomTraitConfig, partnerSDKHandler, patrolHandler, perceptionHandler, persistentAnchorHandler, photogrammetryHandler, phyllotaxisHandler, physicsSystem, pickByWeight, planeDetectionHandler, poiHandler, pointCloudHandler, portableHandler, poseEstimationHandler, pressableHandler, propose, publishToMQTTSink, quotaHandler, ragKnowledgeHandler, rateLimiterHandler, rbacHandler, realityKitMeshHandler, recordGratitude, rememberRelationalContext, remotePresenceHandler, renderNetworkHandler, reputationLedgerHandler, resolveBloomStage, resolveCRDTRoomTraitConfig, resolvePulseHz, resourceAccountingHandler, reverbZoneHandler, rigidbodyHandler, roadmapNodeHandler, roleHandler, rooftopAnchorHandler, roomMeshHandler, ropeHandler, runECSBenchmark, runResourceAccountingAudit, sceneGraphHandler, sceneReconstructionHandler, schedulerHandler, screenReaderHandler, scrollableHandler, seatedHandler, secondsToUSDTimeCode, seededRand01, sensorHandler, setAgentManifest, sharePlayHandler, sharedAnchorHandler, sharedWorldHandler, shouldFire, signRequest, skillRegistryHandler, slidableHandler, softBodyHandler, sonificationHandler, spatialAccessoryHandler, spatialAudioCueHandler, spatialAwarenessHandler, spatialNavigationHandler, spatialPersonaHandler, spectatorHandler, ssoOidcHandler, ssoSamlHandler, stableDiffusionHandler, stableResourceAccountingReceiptHash, statHandler, structuredLoggerHandler, subtitleHandler, syncTierHandler, tenantHandler, terrainAnchorHandler, timeoutGuardHandler, tokenGatedHandler, transformHandler, triggerHandler, urdfRobotHandler, usdHandler, usdTimeCodeToSeconds, userMonitorHandler, validateCRDTRoomTraitConfig, validateCareField, validateSemVer, vectorDBHandler, verifyWebhookSignature, visionHandler, voiceInputHandler, voiceMeshHandler, voiceOutputHandler, voiceProximityHandler, volumetricHandler, volumetricVideoHandler, volumetricWindowHandler, voronoiFractureHandler, vote, vpsHandler, vrTraitRegistry, walletHandler, wasmBridgeHandler, windHandler, withNegotiation, wotThingHandler, zkPrivateHandler };
|
|
56159
|
-
//# sourceMappingURL=chunk-
|
|
56160
|
-
//# sourceMappingURL=chunk-
|
|
56164
|
+
//# sourceMappingURL=chunk-DXWOTOUK.js.map
|
|
56165
|
+
//# sourceMappingURL=chunk-DXWOTOUK.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHoloMapRuntime, HOLOMAP_DEFAULTS } from './chunk-
|
|
1
|
+
import { createHoloMapRuntime, HOLOMAP_DEFAULTS } from './chunk-LOGP3JWH.js';
|
|
2
2
|
|
|
3
3
|
// src/reconstruction/FusedAttentionKernel.ts
|
|
4
4
|
var FUSED_ATTENTION_WGSL = `
|
|
@@ -619,5 +619,5 @@ async function replayMobileSensorBundle(bundle, config = {}) {
|
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
export { ANCHOR_DEFAULTS, ARCORE_DEPTH_RECOMMENDED_RANGE_MILLIMETERS, HOLOMAP_MOBILE_SENSOR_BUNDLE_VERSION, TRAJECTORY_DEFAULTS, arCoreDepthFrameToMobileSensorFrame, cameraPoseFromColumnMajorTransform, createAnchorContext, createArCoreDepthMobileSensorBundle, createFusedAttentionBackend, createPagedKVCache, createTrajectoryMemory, mergeAnchoredProvenance, mobileSensorBundleToFrames, replayMobileSensorBundle, validateMobileSensorBundle };
|
|
622
|
-
//# sourceMappingURL=chunk-
|
|
623
|
-
//# sourceMappingURL=chunk-
|
|
622
|
+
//# sourceMappingURL=chunk-E47Z63DF.js.map
|
|
623
|
+
//# sourceMappingURL=chunk-E47Z63DF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { init_VRRCompiler, VRRCompiler } from './chunk-
|
|
1
|
+
import { init_VRRCompiler, VRRCompiler } from './chunk-4SDKXQ4C.js';
|
|
2
2
|
import { init_ARCompiler, ARCompiler } from './chunk-UJXISJBN.js';
|
|
3
|
-
import { init_BabylonCompiler, BabylonCompiler } from './chunk-
|
|
3
|
+
import { init_BabylonCompiler, BabylonCompiler } from './chunk-J7XZV333.js';
|
|
4
4
|
import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
|
|
5
5
|
import { ANSCapabilityPath } from '@holoscript/core-types/ans';
|
|
6
6
|
|
|
@@ -66,5 +66,5 @@ var MultiLayerCompiler = class extends CompilerBase {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
export { MultiLayerCompiler };
|
|
69
|
-
//# sourceMappingURL=chunk-
|
|
70
|
-
//# sourceMappingURL=chunk-
|
|
69
|
+
//# sourceMappingURL=chunk-FFAOS5HQ.js.map
|
|
70
|
+
//# sourceMappingURL=chunk-FFAOS5HQ.js.map
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { init_material_properties_visual, init_surface_texture_visual, init_lighting_visual, init_gems_minerals_visual, init_fabric_cloth_visual, init_visual_effects_visual, init_age_condition_visual, init_water_fluid_visual, init_weather_phenomena_visual, init_emotion_mood_visual, init_size_scale_visual, init_environmental_biome_visual, init_magic_fantasy_visual, init_scifi_technology_visual, init_creatures_mythical_visual, init_nature_life_visual, init_furniture_decor_visual, init_construction_building_visual, init_containers_storage_visual, init_shape_form_visual, init_animals_visual, init_maritime_naval_visual, init_time_period_visual, init_accessibility_visual, init_accessibility_extended_visual, init_architecture_realestate_visual, init_audio_visual, init_cooking_food_visual, init_core_vr_interaction_visual, init_data_visualization_visual, init_education_learning_visual, init_environment_input_visual, init_game_mechanics_visual, init_geospatial_web3_visual, init_healthcare_medical_visual, init_humanoid_avatar_visual, init_intelligence_behavior_visual, init_interop_copresence_visual, init_iot_autonomous_agents_visual, init_locomotion_movement_visual, init_measurement_sensing_visual, init_media_analytics_visual, init_multisensory_haptic_visual, init_musical_sound_visual, init_music_performance_visual, init_narrative_storytelling_visual, init_networking_ai_visual, init_npc_roles_visual, init_object_interaction_visual, init_parser_core_ui_visual, init_physical_affordances_visual, init_physics_expansion_visual, init_procedural_generation_visual, init_resource_gathering_visual, init_safety_boundaries_visual, init_signs_communication_visual, init_simple_modifiers_visual, init_social_commerce_visual, init_social_effects_visual, init_sports_fitness_visual, init_state_persistence_visual, init_transportation_vehicles_visual, init_volumetric_webgpu_visual, init_weather_particles_visual, init_xr_platform_visual, MATERIAL_PROPERTIES_VISUALS, SURFACE_TEXTURE_VISUALS, LIGHTING_VISUALS, GEMS_MINERALS_VISUALS, FABRIC_CLOTH_VISUALS, VISUAL_EFFECTS_VISUALS, AGE_CONDITION_VISUALS, WATER_FLUID_VISUALS, WEATHER_PHENOMENA_VISUALS, EMOTION_MOOD_VISUALS, SIZE_SCALE_VISUALS, ENVIRONMENTAL_BIOME_VISUALS, MAGIC_FANTASY_VISUALS, SCIFI_TECHNOLOGY_VISUALS, CREATURES_MYTHICAL_VISUALS, NATURE_LIFE_VISUALS, FURNITURE_DECOR_VISUALS, CONSTRUCTION_BUILDING_VISUALS, CONTAINERS_STORAGE_VISUALS, SHAPE_FORM_VISUALS, ANIMALS_VISUALS, MARITIME_NAVAL_VISUALS, TIME_PERIOD_VISUALS, ACCESSIBILITY_VISUALS, ACCESSIBILITY_EXTENDED_VISUALS, ARCHITECTURE_REALESTATE_VISUALS, AUDIO_VISUALS, COOKING_FOOD_VISUALS, CORE_VR_INTERACTION_VISUALS, DATA_VISUALIZATION_VISUALS, EDUCATION_LEARNING_VISUALS, ENVIRONMENT_INPUT_VISUALS, GAME_MECHANICS_VISUALS, GEOSPATIAL_WEB3_VISUALS, HEALTHCARE_MEDICAL_VISUALS, HUMANOID_AVATAR_VISUALS, INTELLIGENCE_BEHAVIOR_VISUALS, INTEROP_COPRESENCE_VISUALS, IOT_AUTONOMOUS_AGENTS_VISUALS, LOCOMOTION_MOVEMENT_VISUALS, MEASUREMENT_SENSING_VISUALS, MEDIA_ANALYTICS_VISUALS, MULTISENSORY_HAPTIC_VISUALS, MUSICAL_SOUND_VISUALS, MUSIC_PERFORMANCE_VISUALS, NARRATIVE_STORYTELLING_VISUALS, NETWORKING_AI_VISUALS, NPC_ROLES_VISUALS, OBJECT_INTERACTION_VISUALS, PARSER_CORE_UI_VISUALS, PHYSICAL_AFFORDANCES_VISUALS, PHYSICS_EXPANSION_VISUALS, PROCEDURAL_GENERATION_VISUALS, RESOURCE_GATHERING_VISUALS, SAFETY_BOUNDARIES_VISUALS, SIGNS_COMMUNICATION_VISUALS, SIMPLE_MODIFIERS_VISUALS, SOCIAL_COMMERCE_VISUALS, SOCIAL_EFFECTS_VISUALS, SPORTS_FITNESS_VISUALS, STATE_PERSISTENCE_VISUALS, TRANSPORTATION_VEHICLES_VISUALS, VOLUMETRIC_WEBGPU_VISUALS, WEATHER_PARTICLES_VISUALS, XR_PLATFORM_VISUALS } from './chunk-XT6JY5W5.js';
|
|
2
|
+
import { init_BotanicalLotusTrait, createBotanicalLotusRenderProfile, buildLotusPetalMaterialSpec, LOTUS_PETAL_UNIFORM_BINDINGS, buildLotusPetalGeometryData, lotusPetalGeometryParamsFromProfile, buildLotusFlowerPlacements } from './chunk-QRPRIJ2W.js';
|
|
2
3
|
import { init_ProvenanceSemiring, ProvenanceSemiring } from './chunk-TJHVSBP2.js';
|
|
3
4
|
import { init_TraitVisualRegistry, init_types, init_TraitCompositor, TraitCompositor, TraitVisualRegistry } from './chunk-4C57PR42.js';
|
|
4
5
|
import { init_PlatformConditionalCompilerMixin, createPlatformTarget, PlatformConditionalCompilerMixin } from './chunk-GZG4KA4E.js';
|
|
5
|
-
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileSimulationBlock, simulationToR3F, compileWeatherBlock, weatherToR3F, compileAudioSourceBlock, audioSourceToR3F, compilePostProcessingBlock, postProcessingToR3F, compileParticleBlock, particlesToR3F, compilePhysicsBlock, physicsToR3F, compileMaterialBlock, materialToR3F } from './chunk-
|
|
6
|
+
import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileSimulationBlock, simulationToR3F, compileWeatherBlock, weatherToR3F, compileAudioSourceBlock, audioSourceToR3F, compilePostProcessingBlock, postProcessingToR3F, compileParticleBlock, particlesToR3F, compilePhysicsBlock, physicsToR3F, compileMaterialBlock, materialToR3F } from './chunk-BOVPWH4H.js';
|
|
6
7
|
import { init_AgentRBAC, init_CompilerBase, getRBAC, UnauthorizedCompilerAccessError, escapeStringValue } from './chunk-QPSKHBJP.js';
|
|
7
8
|
import { __esm, __export } from './chunk-OL46QLBJ.js';
|
|
8
9
|
|
|
@@ -758,6 +759,7 @@ var init_R3FCompiler = __esm({
|
|
|
758
759
|
init_AgentRBAC();
|
|
759
760
|
init_CompilerBase();
|
|
760
761
|
init_ObjectPool();
|
|
762
|
+
init_BotanicalLotusTrait();
|
|
761
763
|
r3fNodePool = new ASTNodePool(
|
|
762
764
|
() => ({ type: "", props: {} }),
|
|
763
765
|
(node) => {
|
|
@@ -2920,6 +2922,23 @@ var init_R3FCompiler = __esm({
|
|
|
2920
2922
|
node.directives = [];
|
|
2921
2923
|
return node;
|
|
2922
2924
|
}
|
|
2925
|
+
/**
|
|
2926
|
+
* I.007 closure: emit a node's compiled petal material spec into its props.
|
|
2927
|
+
* Shared by every trait-bearing compile path (compileNode directives + the
|
|
2928
|
+
* .holo compileObjectDecl obj.traits path) so the emission can't silently miss
|
|
2929
|
+
* the real parser route. The spec is the locked CompiledMaterialSpec shape that
|
|
2930
|
+
* the renderer's buildCompiledMaterial consumes — building the petal material
|
|
2931
|
+
* from `.holo` data instead of hand-authoring it.
|
|
2932
|
+
*/
|
|
2933
|
+
emitCompiledLotusMaterial(props, config) {
|
|
2934
|
+
const profile = createBotanicalLotusRenderProfile(config);
|
|
2935
|
+
props.__compiledMaterial = buildLotusPetalMaterialSpec(profile);
|
|
2936
|
+
props.__uniformBindings = LOTUS_PETAL_UNIFORM_BINDINGS;
|
|
2937
|
+
props.__petalGeometry = buildLotusPetalGeometryData(
|
|
2938
|
+
lotusPetalGeometryParamsFromProfile(profile)
|
|
2939
|
+
);
|
|
2940
|
+
props.__petalPlacements = buildLotusFlowerPlacements(profile);
|
|
2941
|
+
}
|
|
2923
2942
|
compileNode(node) {
|
|
2924
2943
|
if (node.type === "system") {
|
|
2925
2944
|
return this.compileSystemNode(node);
|
|
@@ -2947,6 +2966,10 @@ var init_R3FCompiler = __esm({
|
|
|
2947
2966
|
}
|
|
2948
2967
|
}
|
|
2949
2968
|
}
|
|
2969
|
+
const lotusConfig = r3fNode.traits?.get("botanical_lotus");
|
|
2970
|
+
if (lotusConfig) {
|
|
2971
|
+
this.emitCompiledLotusMaterial(r3fNode.props, lotusConfig);
|
|
2972
|
+
}
|
|
2950
2973
|
const enhanced = node;
|
|
2951
2974
|
if (enhanced.graphics) {
|
|
2952
2975
|
this.applyGraphicsConfig(r3fNode, enhanced.graphics);
|
|
@@ -3688,6 +3711,8 @@ var init_R3FCompiler = __esm({
|
|
|
3688
3711
|
if (!props.rigidBody) props.rigidBody = { type: "fixed" };
|
|
3689
3712
|
if (!props.collider) props.collider = { type: "auto" };
|
|
3690
3713
|
}
|
|
3714
|
+
} else if (name === "botanical_lotus") {
|
|
3715
|
+
this.emitCompiledLotusMaterial(props, trait.config || {});
|
|
3691
3716
|
} else {
|
|
3692
3717
|
props[name] = trait.config || true;
|
|
3693
3718
|
if (!props.__unrecognizedTraits) {
|
|
@@ -4371,5 +4396,5 @@ var init_R3FCompiler = __esm({
|
|
|
4371
4396
|
});
|
|
4372
4397
|
|
|
4373
4398
|
export { ASTNodePool, ENVIRONMENT_PRESETS, MATERIAL_PRESETS, QUALITY_TIER_SCALES, R3FCompiler, R3FCompiler_exports, UI_COMPONENT_PRESETS, init_ObjectPool, init_R3FCompiler, init_visual, registerAllPresets };
|
|
4374
|
-
//# sourceMappingURL=chunk-
|
|
4375
|
-
//# sourceMappingURL=chunk-
|
|
4399
|
+
//# sourceMappingURL=chunk-FS7BFHFN.js.map
|
|
4400
|
+
//# sourceMappingURL=chunk-FS7BFHFN.js.map
|
|
@@ -4,9 +4,9 @@ var chunkLM2VU56C_cjs = require('./chunk-LM2VU56C.cjs');
|
|
|
4
4
|
var chunkCIWWXYHZ_cjs = require('./chunk-CIWWXYHZ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/version.ts
|
|
7
|
-
var HOLOSCRIPT_VERSION = "8.0.
|
|
8
|
-
var GIT_COMMIT_SHA = "
|
|
9
|
-
var BUILD_TIMESTAMP = "2026-06-
|
|
7
|
+
var HOLOSCRIPT_VERSION = "8.0.2" ;
|
|
8
|
+
var GIT_COMMIT_SHA = "9c4778c0c" ;
|
|
9
|
+
var BUILD_TIMESTAMP = "2026-06-04T23:03:35.165Z" ;
|
|
10
10
|
function getVersionString() {
|
|
11
11
|
const sha = `+${GIT_COMMIT_SHA}` ;
|
|
12
12
|
return `${HOLOSCRIPT_VERSION}${sha}`;
|
|
@@ -2192,5 +2192,5 @@ exports.putCachedWeightBlob = putCachedWeightBlob;
|
|
|
2192
2192
|
exports.resetHoloMapTelemetryForTests = resetHoloMapTelemetryForTests;
|
|
2193
2193
|
exports.runHoloMapMicroEncoderCpu = runHoloMapMicroEncoderCpu;
|
|
2194
2194
|
exports.tryCreateHoloMapEncoderDevice = tryCreateHoloMapEncoderDevice;
|
|
2195
|
-
//# sourceMappingURL=chunk-
|
|
2196
|
-
//# sourceMappingURL=chunk-
|
|
2195
|
+
//# sourceMappingURL=chunk-FXIO6GHT.cjs.map
|
|
2196
|
+
//# sourceMappingURL=chunk-FXIO6GHT.cjs.map
|