@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.
- package/Collisions/gpuPicker.js +9 -1
- package/Collisions/gpuPicker.js.map +1 -1
- package/Engines/WebGPU/webgpuCacheRenderPipeline.d.ts +20 -0
- package/Engines/WebGPU/webgpuCacheRenderPipeline.js +58 -13
- package/Engines/WebGPU/webgpuCacheRenderPipeline.js.map +1 -1
- package/Engines/WebGPU/webgpuConstants.d.ts +5 -2
- package/Engines/WebGPU/webgpuConstants.js +3 -0
- package/Engines/WebGPU/webgpuConstants.js.map +1 -1
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/engine.d.ts +45 -41
- package/Engines/shaderStore.js +2 -2
- package/Engines/shaderStore.js.map +1 -1
- package/Engines/webgpuEngine.d.ts +84 -0
- package/Engines/webgpuEngine.js +80 -1
- package/Engines/webgpuEngine.js.map +1 -1
- package/Layers/thinHighlightLayer.js.map +1 -1
- package/Layers/thinSelectionOutlineLayer.js +20 -5
- package/Layers/thinSelectionOutlineLayer.js.map +1 -1
- package/Materials/GaussianSplatting/gaussianSplattingGpuPickingMaterialPlugin.d.ts +7 -0
- package/Materials/GaussianSplatting/gaussianSplattingGpuPickingMaterialPlugin.js +22 -0
- package/Materials/GaussianSplatting/gaussianSplattingGpuPickingMaterialPlugin.js.map +1 -1
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +2 -28
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
- package/Materials/Textures/baseTexture.js +3 -0
- package/Materials/Textures/baseTexture.js.map +1 -1
- package/Materials/Textures/texture.js +1 -0
- package/Materials/Textures/texture.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingCompoundMesh.d.ts +46 -0
- package/Meshes/GaussianSplatting/gaussianSplattingCompoundMesh.js +56 -0
- package/Meshes/GaussianSplatting/gaussianSplattingCompoundMesh.js.map +1 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +104 -463
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +553 -2018
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.d.ts +554 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.js +2017 -0
- package/Meshes/GaussianSplatting/gaussianSplattingMeshBase.js.map +1 -0
- package/Meshes/index.d.ts +2 -0
- package/Meshes/index.js +2 -0
- package/Meshes/index.js.map +1 -1
- package/Misc/tools.js +1 -1
- package/Misc/tools.js.map +1 -1
- package/Rendering/depthRenderer.js +2 -1
- package/Rendering/depthRenderer.js.map +1 -1
- package/node.d.ts +7 -0
- package/node.js +17 -0
- package/node.js.map +1 -1
- package/package.json +2 -2
- package/Shaders/ShadersInclude/openpbrBlockAmbientOcclusion.d.ts +0 -5
- package/Shaders/ShadersInclude/openpbrBlockAmbientOcclusion.js +0 -35
- package/Shaders/ShadersInclude/openpbrBlockAmbientOcclusion.js.map +0 -1
- package/ShadersWGSL/ShadersInclude/openpbrBlockAmbientOcclusion.d.ts +0 -5
- package/ShadersWGSL/ShadersInclude/openpbrBlockAmbientOcclusion.js +0 -36
- 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.
|
|
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
|
-
"@
|
|
25
|
+
"@dev/core": "^1.0.0"
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
|
28
28
|
"3D",
|
|
@@ -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,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"]}
|