@onerjs/core 8.40.1 → 8.40.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/Engines/WebGPU/webgpuHardwareTexture.js +1 -1
- package/Engines/WebGPU/webgpuHardwareTexture.js.map +1 -1
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/webgpuEngine.js +5 -3
- package/Engines/webgpuEngine.js.map +1 -1
- package/FrameGraph/Tasks/Rendering/geometryRendererTask.js +2 -0
- package/FrameGraph/Tasks/Rendering/geometryRendererTask.js.map +1 -1
- package/Layers/thinSelectionOutlineLayer.js +12 -1
- package/Layers/thinSelectionOutlineLayer.js.map +1 -1
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.d.ts +2 -1
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +31 -11
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
- package/Maths/math.path.d.ts +11 -6
- package/Maths/math.path.js +86 -25
- package/Maths/math.path.js.map +1 -1
- package/Maths/math.vector.d.ts +24 -0
- package/Maths/math.vector.js +39 -5
- package/Maths/math.vector.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +7 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +80 -8
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
- package/Rendering/depthRenderer.d.ts +9 -0
- package/Rendering/depthRenderer.js +42 -6
- package/Rendering/depthRenderer.js.map +1 -1
- package/Shaders/gaussianSplattingDepth.fragment.js +11 -4
- package/Shaders/gaussianSplattingDepth.fragment.js.map +1 -1
- package/ShadersWGSL/gaussianSplattingDepth.fragment.js +9 -3
- package/ShadersWGSL/gaussianSplattingDepth.fragment.js.map +1 -1
- package/XR/features/WebXRHandTracking.js +2 -1
- package/XR/features/WebXRHandTracking.js.map +1 -1
- package/package.json +1 -1
package/Engines/webgpuEngine.js
CHANGED
|
@@ -2428,8 +2428,9 @@ export class WebGPUEngine extends ThinWebGPUEngine {
|
|
|
2428
2428
|
const gpuMRTWrapper = mrtTexture?._hardwareTexture;
|
|
2429
2429
|
const gpuMRTTexture = gpuMRTWrapper?.underlyingResource;
|
|
2430
2430
|
if (gpuMRTWrapper && gpuMRTTexture) {
|
|
2431
|
+
const depthSlice = mrtTexture.is3D ? (rtWrapper.layerIndices?.[i] ?? 0) : undefined;
|
|
2431
2432
|
const baseArrayLayer = rtWrapper.getBaseArrayLayer(i);
|
|
2432
|
-
const gpuMSAATexture = useMSAA ? gpuMRTWrapper.getMSAATexture(sampleCount,
|
|
2433
|
+
const gpuMSAATexture = useMSAA ? gpuMRTWrapper.getMSAATexture(sampleCount, mrtTexture.is3D ? depthSlice : baseArrayLayer) : undefined;
|
|
2433
2434
|
const viewDescriptor = {
|
|
2434
2435
|
...this._rttRenderPassWrapper.colorAttachmentViewDescriptor,
|
|
2435
2436
|
dimension: mrtTexture.is3D ? "3d" /* WebGPUConstants.TextureViewDimension.E3d */ : "2d" /* WebGPUConstants.TextureViewDimension.E2d */,
|
|
@@ -2448,7 +2449,7 @@ export class WebGPUEngine extends ThinWebGPUEngine {
|
|
|
2448
2449
|
colorAttachments.push({
|
|
2449
2450
|
view: colorMSAATextureView ? colorMSAATextureView : colorTextureView,
|
|
2450
2451
|
resolveTarget: gpuMSAATexture && !rtWrapper.disableAutomaticMSAAResolve && rtWrapper.resolveMSAAColors ? colorTextureView : undefined,
|
|
2451
|
-
depthSlice
|
|
2452
|
+
depthSlice,
|
|
2452
2453
|
clearValue: index !== 0 && mustClearColor ? (isRtInteger ? clearColorForIntegerRt : clearColor) : undefined,
|
|
2453
2454
|
loadOp: index !== 0 && mustClearColor ? "clear" /* WebGPUConstants.LoadOp.Clear */ : "load" /* WebGPUConstants.LoadOp.Load */,
|
|
2454
2455
|
storeOp: "store" /* WebGPUConstants.StoreOp.Store */,
|
|
@@ -2464,12 +2465,13 @@ export class WebGPUEngine extends ThinWebGPUEngine {
|
|
|
2464
2465
|
if (internalTexture) {
|
|
2465
2466
|
const gpuWrapper = internalTexture._hardwareTexture;
|
|
2466
2467
|
const gpuTexture = gpuWrapper.underlyingResource;
|
|
2468
|
+
const layerIndex = this._rttRenderPassWrapper.colorAttachmentViewDescriptor.baseArrayLayer;
|
|
2467
2469
|
let depthSlice = undefined;
|
|
2468
2470
|
if (rtWrapper.is3D) {
|
|
2469
2471
|
depthSlice = this._rttRenderPassWrapper.colorAttachmentViewDescriptor.baseArrayLayer;
|
|
2470
2472
|
this._rttRenderPassWrapper.colorAttachmentViewDescriptor.baseArrayLayer = 0;
|
|
2471
2473
|
}
|
|
2472
|
-
const gpuMSAATexture = useMSAA ? gpuWrapper.getMSAATexture(sampleCount) : undefined;
|
|
2474
|
+
const gpuMSAATexture = useMSAA ? gpuWrapper.getMSAATexture(sampleCount, layerIndex) : undefined;
|
|
2473
2475
|
const colorTextureView = gpuTexture.createView(this._rttRenderPassWrapper.colorAttachmentViewDescriptor);
|
|
2474
2476
|
const colorMSAATextureView = gpuMSAATexture?.createView(this._rttRenderPassWrapper.colorAttachmentViewDescriptor);
|
|
2475
2477
|
const isRtInteger = internalTexture.type === 7 || internalTexture.type === 5;
|