@rings-webgpu/core 1.0.14 → 1.0.15

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.
@@ -24959,10 +24959,6 @@ let GSplatRenderer = class extends RenderNode {
24959
24959
  this.splatOrder.destroy(force);
24960
24960
  this.splatOrder = null;
24961
24961
  }
24962
- if (this.gsplatMaterial) {
24963
- this.gsplatMaterial.destroy(force);
24964
- this.gsplatMaterial = null;
24965
- }
24966
24962
  this._positions = null;
24967
24963
  this._worldPositions = null;
24968
24964
  this._orderData = null;
@@ -40932,7 +40928,7 @@ class PostProcessingComponent extends ComponentBase {
40932
40928
  }
40933
40929
  }
40934
40930
 
40935
- const version = "1.0.14";
40931
+ const version = "1.0.15";
40936
40932
 
40937
40933
  class Engine3D {
40938
40934
  /**
@@ -53059,6 +53055,7 @@ var __decorateClass$7 = (decorators, target, key, kind) => {
53059
53055
  let FatLineRenderer = class extends RenderNode {
53060
53056
  _fatLineMaterial = null;
53061
53057
  _fatLineGeometry = null;
53058
+ _cachedResolution = new Vector2(0, 0);
53062
53059
  constructor() {
53063
53060
  super();
53064
53061
  }
@@ -53113,12 +53110,16 @@ let FatLineRenderer = class extends RenderNode {
53113
53110
  this._fatLineMaterial.setModelMatrix(this.object3D.transform.worldMatrix);
53114
53111
  const width = webGPUContext.presentationSize[0];
53115
53112
  const height = webGPUContext.presentationSize[1];
53116
- if (width > 0 && height > 0) {
53117
- this._fatLineMaterial.resolution = new Vector2(width, height);
53113
+ if (width > 0 && height > 0 && (this._cachedResolution.x !== width || this._cachedResolution.y !== height)) {
53114
+ this._cachedResolution.set(width, height);
53115
+ this._fatLineMaterial.resolution = this._cachedResolution.clone();
53118
53116
  }
53119
53117
  }
53120
53118
  super.nodeUpdate(view, passType, renderPassState, clusterLightingBuffer);
53121
53119
  }
53120
+ destroy(force) {
53121
+ super.destroy(force);
53122
+ }
53122
53123
  };
53123
53124
  FatLineRenderer = __decorateClass$7([
53124
53125
  RegisterComponent(FatLineRenderer, "FatLineRenderer")