@onerjs/core 8.46.1 → 8.46.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.
Files changed (54) hide show
  1. package/Collisions/gpuPicker.js +9 -1
  2. package/Collisions/gpuPicker.js.map +1 -1
  3. package/Engines/WebGPU/webgpuCacheRenderPipeline.d.ts +20 -0
  4. package/Engines/WebGPU/webgpuCacheRenderPipeline.js +58 -13
  5. package/Engines/WebGPU/webgpuCacheRenderPipeline.js.map +1 -1
  6. package/Engines/WebGPU/webgpuConstants.d.ts +5 -2
  7. package/Engines/WebGPU/webgpuConstants.js +3 -0
  8. package/Engines/WebGPU/webgpuConstants.js.map +1 -1
  9. package/Engines/abstractEngine.js +2 -2
  10. package/Engines/abstractEngine.js.map +1 -1
  11. package/Engines/engine.d.ts +45 -41
  12. package/Engines/shaderStore.js +2 -2
  13. package/Engines/shaderStore.js.map +1 -1
  14. package/Engines/webgpuEngine.d.ts +84 -0
  15. package/Engines/webgpuEngine.js +80 -1
  16. package/Engines/webgpuEngine.js.map +1 -1
  17. package/Layers/thinHighlightLayer.js.map +1 -1
  18. package/Layers/thinSelectionOutlineLayer.js +20 -5
  19. package/Layers/thinSelectionOutlineLayer.js.map +1 -1
  20. package/Materials/GaussianSplatting/gaussianSplattingGpuPickingMaterialPlugin.d.ts +7 -0
  21. package/Materials/GaussianSplatting/gaussianSplattingGpuPickingMaterialPlugin.js +22 -0
  22. package/Materials/GaussianSplatting/gaussianSplattingGpuPickingMaterialPlugin.js.map +1 -1
  23. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +2 -28
  24. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
  25. package/Materials/Textures/baseTexture.js +3 -0
  26. package/Materials/Textures/baseTexture.js.map +1 -1
  27. package/Materials/Textures/texture.js +1 -0
  28. package/Materials/Textures/texture.js.map +1 -1
  29. package/Meshes/GaussianSplatting/gaussianSplattingCompoundMesh.d.ts +46 -0
  30. package/Meshes/GaussianSplatting/gaussianSplattingCompoundMesh.js +56 -0
  31. package/Meshes/GaussianSplatting/gaussianSplattingCompoundMesh.js.map +1 -0
  32. package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +104 -463
  33. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +553 -2018
  34. package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
  35. package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.d.ts +554 -0
  36. package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.js +2017 -0
  37. package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.js.map +1 -0
  38. package/Meshes/index.d.ts +2 -0
  39. package/Meshes/index.js +2 -0
  40. package/Meshes/index.js.map +1 -1
  41. package/Misc/tools.js +1 -1
  42. package/Misc/tools.js.map +1 -1
  43. package/Rendering/depthRenderer.js +2 -1
  44. package/Rendering/depthRenderer.js.map +1 -1
  45. package/node.d.ts +7 -0
  46. package/node.js +17 -0
  47. package/node.js.map +1 -1
  48. package/package.json +2 -2
  49. package/Shaders/ShadersInclude/openpbrBlockAmbientOcclusion.d.ts +0 -5
  50. package/Shaders/ShadersInclude/openpbrBlockAmbientOcclusion.js +0 -35
  51. package/Shaders/ShadersInclude/openpbrBlockAmbientOcclusion.js.map +0 -1
  52. package/ShadersWGSL/ShadersInclude/openpbrBlockAmbientOcclusion.d.ts +0 -5
  53. package/ShadersWGSL/ShadersInclude/openpbrBlockAmbientOcclusion.js +0 -36
  54. package/ShadersWGSL/ShadersInclude/openpbrBlockAmbientOcclusion.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onerjs/core",
3
- "version": "8.46.1",
3
+ "version": "8.46.3",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "types": "index.d.ts",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@dev/build-tools": "^1.0.0",
25
- "@lts/core": "^1.0.0"
25
+ "@dev/core": "^1.0.0"
26
26
  },
27
27
  "keywords": [
28
28
  "3D",
@@ -1,5 +0,0 @@
1
- /** @internal */
2
- export declare const openpbrBlockAmbientOcclusion: {
3
- name: string;
4
- shader: string;
5
- };
@@ -1,35 +0,0 @@
1
- // Do not edit.
2
- import { ShaderStore } from "../../Engines/shaderStore.js";
3
- const name = "openpbrBlockAmbientOcclusion";
4
- const shader = `struct ambientOcclusionOutParams
5
- {vec3 ambientOcclusionColor;
6
- #if DEBUGMODE>0 && defined(AMBIENT_OCCLUSION)
7
- vec3 ambientOcclusionColorMap;
8
- #endif
9
- };
10
- #define pbr_inline
11
- ambientOcclusionOutParams ambientOcclusionBlock(
12
- #ifdef AMBIENT_OCCLUSION
13
- in vec3 ambientOcclusionColorMap_,
14
- in vec2 ambientInfos
15
- #endif
16
- )
17
- {ambientOcclusionOutParams outParams;vec3 ambientOcclusionColor=vec3(1.,1.,1.);
18
- #ifdef AMBIENT_OCCLUSION
19
- vec3 ambientOcclusionColorMap=ambientOcclusionColorMap_*ambientInfos.y;
20
- #ifdef AMBIENTINGRAYSCALE
21
- ambientOcclusionColorMap=vec3(ambientOcclusionColorMap.r,ambientOcclusionColorMap.r,ambientOcclusionColorMap.r);
22
- #endif
23
- #if DEBUGMODE>0
24
- outParams.ambientOcclusionColorMap=ambientOcclusionColorMap;
25
- #endif
26
- #endif
27
- outParams.ambientOcclusionColor=ambientOcclusionColor;return outParams;}
28
- `;
29
- // Sideeffect
30
- if (!ShaderStore.IncludesShadersStore[name]) {
31
- ShaderStore.IncludesShadersStore[name] = shader;
32
- }
33
- /** @internal */
34
- export const openpbrBlockAmbientOcclusion = { name, shader };
35
- //# sourceMappingURL=openpbrBlockAmbientOcclusion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"openpbrBlockAmbientOcclusion.js","sourceRoot":"","sources":["../../../../../dev/core/src/Shaders/ShadersInclude/openpbrBlockAmbientOcclusion.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,IAAI,GAAG,8BAA8B,CAAC;AAC5C,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwBd,CAAC;AACF,aAAa;AACb,IAAI,CAAC,WAAW,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAE,CAAC;IAC1C,WAAW,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AACpD,CAAC;AACD,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC","sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../../Engines/shaderStore\";\n\nconst name = \"openpbrBlockAmbientOcclusion\";\nconst shader = `struct ambientOcclusionOutParams\n{vec3 ambientOcclusionColor;\n#if DEBUGMODE>0 && defined(AMBIENT_OCCLUSION)\nvec3 ambientOcclusionColorMap;\n#endif\n};\n#define pbr_inline\nambientOcclusionOutParams ambientOcclusionBlock(\n#ifdef AMBIENT_OCCLUSION\nin vec3 ambientOcclusionColorMap_,\nin vec2 ambientInfos\n#endif\n)\n{ambientOcclusionOutParams outParams;vec3 ambientOcclusionColor=vec3(1.,1.,1.);\n#ifdef AMBIENT_OCCLUSION\nvec3 ambientOcclusionColorMap=ambientOcclusionColorMap_*ambientInfos.y;\n#ifdef AMBIENTINGRAYSCALE\nambientOcclusionColorMap=vec3(ambientOcclusionColorMap.r,ambientOcclusionColorMap.r,ambientOcclusionColorMap.r);\n#endif\n#if DEBUGMODE>0\noutParams.ambientOcclusionColorMap=ambientOcclusionColorMap;\n#endif\n#endif\noutParams.ambientOcclusionColor=ambientOcclusionColor;return outParams;}\n`;\n// Sideeffect\nif (!ShaderStore.IncludesShadersStore[name]) {\n ShaderStore.IncludesShadersStore[name] = shader;\n}\n/** @internal */\nexport const openpbrBlockAmbientOcclusion = { name, shader };\n"]}
@@ -1,5 +0,0 @@
1
- /** @internal */
2
- export declare const openpbrBlockAmbientOcclusionWGSL: {
3
- name: string;
4
- shader: string;
5
- };
@@ -1,36 +0,0 @@
1
- // Do not edit.
2
- import { ShaderStore } from "../../Engines/shaderStore.js";
3
- const name = "openpbrBlockAmbientOcclusion";
4
- const shader = `struct ambientOcclusionOutParams
5
- {ambientOcclusionColor: vec3f,
6
- #if DEBUGMODE>0 && defined(AMBIENT_OCCLUSION)
7
- ambientOcclusionColorMap: vec3f
8
- #endif
9
- };
10
- #define pbr_inline
11
- fn ambientOcclusionBlock(
12
- #ifdef AMBIENT_OCCLUSION
13
- ambientOcclusionColorMap_: vec3f,
14
- ambientInfos: vec2f
15
- #endif
16
- )->ambientOcclusionOutParams
17
- {
18
- var outParams: ambientOcclusionOutParams;var ambientOcclusionColor: vec3f= vec3f(1.,1.,1.);
19
- #ifdef AMBIENT_OCCLUSION
20
- var ambientOcclusionColorMap: vec3f=ambientOcclusionColorMap_*ambientInfos.y;
21
- #ifdef AMBIENTINGRAYSCALE
22
- ambientOcclusionColorMap= vec3f(ambientOcclusionColorMap.r,ambientOcclusionColorMap.r,ambientOcclusionColorMap.r);
23
- #endif
24
- #if DEBUGMODE>0
25
- outParams.ambientOcclusionColorMap=ambientOcclusionColorMap;
26
- #endif
27
- #endif
28
- outParams.ambientOcclusionColor=ambientOcclusionColor;return outParams;}
29
- `;
30
- // Sideeffect
31
- if (!ShaderStore.IncludesShadersStoreWGSL[name]) {
32
- ShaderStore.IncludesShadersStoreWGSL[name] = shader;
33
- }
34
- /** @internal */
35
- export const openpbrBlockAmbientOcclusionWGSL = { name, shader };
36
- //# sourceMappingURL=openpbrBlockAmbientOcclusion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"openpbrBlockAmbientOcclusion.js","sourceRoot":"","sources":["../../../../../dev/core/src/ShadersWGSL/ShadersInclude/openpbrBlockAmbientOcclusion.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,IAAI,GAAG,8BAA8B,CAAC;AAC5C,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAyBd,CAAC;AACF,aAAa;AACb,IAAI,CAAC,WAAW,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,CAAC;IAC9C,WAAW,CAAC,wBAAwB,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AACxD,CAAC;AACD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC","sourcesContent":["// Do not edit.\nimport { ShaderStore } from \"../../Engines/shaderStore\";\n\nconst name = \"openpbrBlockAmbientOcclusion\";\nconst shader = `struct ambientOcclusionOutParams\n{ambientOcclusionColor: vec3f,\n#if DEBUGMODE>0 && defined(AMBIENT_OCCLUSION)\nambientOcclusionColorMap: vec3f\n#endif\n};\n#define pbr_inline\nfn ambientOcclusionBlock(\n#ifdef AMBIENT_OCCLUSION\nambientOcclusionColorMap_: vec3f,\nambientInfos: vec2f\n#endif\n)->ambientOcclusionOutParams\n{ \nvar outParams: ambientOcclusionOutParams;var ambientOcclusionColor: vec3f= vec3f(1.,1.,1.);\n#ifdef AMBIENT_OCCLUSION\nvar ambientOcclusionColorMap: vec3f=ambientOcclusionColorMap_*ambientInfos.y;\n#ifdef AMBIENTINGRAYSCALE\nambientOcclusionColorMap= vec3f(ambientOcclusionColorMap.r,ambientOcclusionColorMap.r,ambientOcclusionColorMap.r);\n#endif\n#if DEBUGMODE>0\noutParams.ambientOcclusionColorMap=ambientOcclusionColorMap;\n#endif\n#endif\noutParams.ambientOcclusionColor=ambientOcclusionColor;return outParams;}\n`;\n// Sideeffect\nif (!ShaderStore.IncludesShadersStoreWGSL[name]) {\n ShaderStore.IncludesShadersStoreWGSL[name] = shader;\n}\n/** @internal */\nexport const openpbrBlockAmbientOcclusionWGSL = { name, shader };\n"]}