@gnsx/three 0.186.9 → 0.186.10

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.
@@ -76,7 +76,8 @@ const refreshUniforms = [
76
76
  'steps',
77
77
  'thickness',
78
78
  'transmission',
79
- 'transmissionMap'
79
+ 'transmissionMap',
80
+ 'wireframe'
80
81
  ];
81
82
 
82
83
 
@@ -271,14 +272,12 @@ class NodeMaterialObserver {
271
272
 
272
273
  }
273
274
 
274
- if ( renderObject.material.transmission > 0 ) {
275
+ // global data
275
276
 
276
- const { width, height } = renderObject.context;
277
-
278
- data.bufferWidth = width;
279
- data.bufferHeight = height;
277
+ const { width, height } = renderObject.context;
280
278
 
281
- }
279
+ data.bufferWidth = width;
280
+ data.bufferHeight = height;
282
281
 
283
282
  const { environmentIntensity, environmentRotation } = renderObject.scene;
284
283
 
@@ -599,18 +598,14 @@ class NodeMaterialObserver {
599
598
 
600
599
  }
601
600
 
602
- if ( materialData.transmission > 0 ) {
601
+ const { width, height } = renderObject.context;
603
602
 
604
- const { width, height } = renderObject.context;
605
-
606
- if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
603
+ if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
607
604
 
608
- renderObjectData.bufferWidth = width;
609
- renderObjectData.bufferHeight = height;
605
+ renderObjectData.bufferWidth = width;
606
+ renderObjectData.bufferHeight = height;
610
607
 
611
- return false;
612
-
613
- }
608
+ return false;
614
609
 
615
610
  }
616
611
 
@@ -34279,6 +34274,8 @@ class Geometries extends DataMap {
34279
34274
 
34280
34275
  this._geometryDisposeListeners.delete( geometry );
34281
34276
 
34277
+ this.delete( geometry );
34278
+
34282
34279
  };
34283
34280
 
34284
34281
  geometry.addEventListener( 'dispose', onDispose );
@@ -43351,7 +43348,7 @@ class VelocityNode extends TempNode {
43351
43348
  * @type {UniformNode<mat4>}
43352
43349
  * @default null
43353
43350
  */
43354
- this.previousCameraViewMatrix = uniform( new Matrix4() );
43351
+ this.previousCameraViewMatrix = uniform( new Matrix4() ).setGroup( renderGroup );
43355
43352
 
43356
43353
  }
43357
43354
 
@@ -56085,6 +56082,8 @@ class NodeBuilder {
56085
56082
  delete context.getAO;
56086
56083
  delete context.getGI;
56087
56084
  delete context.getShadow;
56085
+ delete context.nodeLoop;
56086
+ delete context.nodeBlock;
56088
56087
 
56089
56088
  return context;
56090
56089
 
@@ -76,7 +76,8 @@ const refreshUniforms = [
76
76
  'steps',
77
77
  'thickness',
78
78
  'transmission',
79
- 'transmissionMap'
79
+ 'transmissionMap',
80
+ 'wireframe'
80
81
  ];
81
82
 
82
83
 
@@ -271,14 +272,12 @@ class NodeMaterialObserver {
271
272
 
272
273
  }
273
274
 
274
- if ( renderObject.material.transmission > 0 ) {
275
+ // global data
275
276
 
276
- const { width, height } = renderObject.context;
277
-
278
- data.bufferWidth = width;
279
- data.bufferHeight = height;
277
+ const { width, height } = renderObject.context;
280
278
 
281
- }
279
+ data.bufferWidth = width;
280
+ data.bufferHeight = height;
282
281
 
283
282
  const { environmentIntensity, environmentRotation } = renderObject.scene;
284
283
 
@@ -599,18 +598,14 @@ class NodeMaterialObserver {
599
598
 
600
599
  }
601
600
 
602
- if ( materialData.transmission > 0 ) {
601
+ const { width, height } = renderObject.context;
603
602
 
604
- const { width, height } = renderObject.context;
605
-
606
- if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
603
+ if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
607
604
 
608
- renderObjectData.bufferWidth = width;
609
- renderObjectData.bufferHeight = height;
605
+ renderObjectData.bufferWidth = width;
606
+ renderObjectData.bufferHeight = height;
610
607
 
611
- return false;
612
-
613
- }
608
+ return false;
614
609
 
615
610
  }
616
611
 
@@ -34279,6 +34274,8 @@ class Geometries extends DataMap {
34279
34274
 
34280
34275
  this._geometryDisposeListeners.delete( geometry );
34281
34276
 
34277
+ this.delete( geometry );
34278
+
34282
34279
  };
34283
34280
 
34284
34281
  geometry.addEventListener( 'dispose', onDispose );
@@ -43351,7 +43348,7 @@ class VelocityNode extends TempNode {
43351
43348
  * @type {UniformNode<mat4>}
43352
43349
  * @default null
43353
43350
  */
43354
- this.previousCameraViewMatrix = uniform( new Matrix4() );
43351
+ this.previousCameraViewMatrix = uniform( new Matrix4() ).setGroup( renderGroup );
43355
43352
 
43356
43353
  }
43357
43354
 
@@ -56085,6 +56082,8 @@ class NodeBuilder {
56085
56082
  delete context.getAO;
56086
56083
  delete context.getGI;
56087
56084
  delete context.getShadow;
56085
+ delete context.nodeLoop;
56086
+ delete context.nodeBlock;
56088
56087
 
56089
56088
  return context;
56090
56089
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gnsx/three",
3
- "version": "0.186.9",
3
+ "version": "0.186.10",
4
4
  "description": "JavaScript 3D library",
5
5
  "type": "module",
6
6
  "main": "./build/three.module.js",
@@ -70,7 +70,8 @@ const refreshUniforms = [
70
70
  'steps',
71
71
  'thickness',
72
72
  'transmission',
73
- 'transmissionMap'
73
+ 'transmissionMap',
74
+ 'wireframe'
74
75
  ];
75
76
 
76
77
 
@@ -265,14 +266,12 @@ class NodeMaterialObserver {
265
266
 
266
267
  }
267
268
 
268
- if ( renderObject.material.transmission > 0 ) {
269
+ // global data
269
270
 
270
- const { width, height } = renderObject.context;
271
-
272
- data.bufferWidth = width;
273
- data.bufferHeight = height;
271
+ const { width, height } = renderObject.context;
274
272
 
275
- }
273
+ data.bufferWidth = width;
274
+ data.bufferHeight = height;
276
275
 
277
276
  const { environmentIntensity, environmentRotation } = renderObject.scene;
278
277
 
@@ -593,18 +592,14 @@ class NodeMaterialObserver {
593
592
 
594
593
  }
595
594
 
596
- if ( materialData.transmission > 0 ) {
597
-
598
- const { width, height } = renderObject.context;
595
+ const { width, height } = renderObject.context;
599
596
 
600
- if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
597
+ if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
601
598
 
602
- renderObjectData.bufferWidth = width;
603
- renderObjectData.bufferHeight = height;
599
+ renderObjectData.bufferWidth = width;
600
+ renderObjectData.bufferHeight = height;
604
601
 
605
- return false;
606
-
607
- }
602
+ return false;
608
603
 
609
604
  }
610
605
 
@@ -82,7 +82,7 @@ class VelocityNode extends TempNode {
82
82
  * @type {UniformNode<mat4>}
83
83
  * @default null
84
84
  */
85
- this.previousCameraViewMatrix = uniform( new Matrix4() );
85
+ this.previousCameraViewMatrix = uniform( new Matrix4() ).setGroup( renderGroup );
86
86
 
87
87
  }
88
88
 
@@ -1112,6 +1112,8 @@ class NodeBuilder {
1112
1112
  delete context.getAO;
1113
1113
  delete context.getGI;
1114
1114
  delete context.getShadow;
1115
+ delete context.nodeLoop;
1116
+ delete context.nodeBlock;
1115
1117
 
1116
1118
  return context;
1117
1119
 
@@ -237,6 +237,8 @@ class Geometries extends DataMap {
237
237
 
238
238
  this._geometryDisposeListeners.delete( geometry );
239
239
 
240
+ this.delete( geometry );
241
+
240
242
  };
241
243
 
242
244
  geometry.addEventListener( 'dispose', onDispose );