@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.
- package/build/three.webgpu.js +16 -17
- package/build/three.webgpu.nodes.js +16 -17
- package/package.json +1 -1
- package/src/materials/nodes/manager/NodeMaterialObserver.js +11 -16
- package/src/nodes/accessors/VelocityNode.js +1 -1
- package/src/nodes/core/NodeBuilder.js +2 -0
- package/src/renderers/common/Geometries.js +2 -0
package/build/three.webgpu.js
CHANGED
|
@@ -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
|
-
|
|
275
|
+
// global data
|
|
275
276
|
|
|
276
|
-
|
|
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
|
-
|
|
601
|
+
const { width, height } = renderObject.context;
|
|
603
602
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
|
|
603
|
+
if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
|
|
607
604
|
|
|
608
|
-
|
|
609
|
-
|
|
605
|
+
renderObjectData.bufferWidth = width;
|
|
606
|
+
renderObjectData.bufferHeight = height;
|
|
610
607
|
|
|
611
|
-
|
|
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
|
-
|
|
275
|
+
// global data
|
|
275
276
|
|
|
276
|
-
|
|
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
|
-
|
|
601
|
+
const { width, height } = renderObject.context;
|
|
603
602
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
|
|
603
|
+
if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
|
|
607
604
|
|
|
608
|
-
|
|
609
|
-
|
|
605
|
+
renderObjectData.bufferWidth = width;
|
|
606
|
+
renderObjectData.bufferHeight = height;
|
|
610
607
|
|
|
611
|
-
|
|
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
|
@@ -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
|
-
|
|
269
|
+
// global data
|
|
269
270
|
|
|
270
|
-
|
|
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
|
-
|
|
597
|
-
|
|
598
|
-
const { width, height } = renderObject.context;
|
|
595
|
+
const { width, height } = renderObject.context;
|
|
599
596
|
|
|
600
|
-
|
|
597
|
+
if ( renderObjectData.bufferWidth !== width || renderObjectData.bufferHeight !== height ) {
|
|
601
598
|
|
|
602
|
-
|
|
603
|
-
|
|
599
|
+
renderObjectData.bufferWidth = width;
|
|
600
|
+
renderObjectData.bufferHeight = height;
|
|
604
601
|
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
}
|
|
602
|
+
return false;
|
|
608
603
|
|
|
609
604
|
}
|
|
610
605
|
|