@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.
package/dist/rings.umd.max.js
CHANGED
|
@@ -24966,10 +24966,6 @@ struct InstanceData {
|
|
|
24966
24966
|
this.splatOrder.destroy(force);
|
|
24967
24967
|
this.splatOrder = null;
|
|
24968
24968
|
}
|
|
24969
|
-
if (this.gsplatMaterial) {
|
|
24970
|
-
this.gsplatMaterial.destroy(force);
|
|
24971
|
-
this.gsplatMaterial = null;
|
|
24972
|
-
}
|
|
24973
24969
|
this._positions = null;
|
|
24974
24970
|
this._worldPositions = null;
|
|
24975
24971
|
this._orderData = null;
|
|
@@ -40939,7 +40935,7 @@ fn CsMain( @builtin(workgroup_id) workgroup_id : vec3<u32> , @builtin(global_inv
|
|
|
40939
40935
|
}
|
|
40940
40936
|
}
|
|
40941
40937
|
|
|
40942
|
-
const version = "1.0.
|
|
40938
|
+
const version = "1.0.15";
|
|
40943
40939
|
|
|
40944
40940
|
class Engine3D {
|
|
40945
40941
|
/**
|
|
@@ -53066,6 +53062,7 @@ fn frag(){
|
|
|
53066
53062
|
exports.FatLineRenderer = class FatLineRenderer extends RenderNode {
|
|
53067
53063
|
_fatLineMaterial = null;
|
|
53068
53064
|
_fatLineGeometry = null;
|
|
53065
|
+
_cachedResolution = new Vector2(0, 0);
|
|
53069
53066
|
constructor() {
|
|
53070
53067
|
super();
|
|
53071
53068
|
}
|
|
@@ -53120,12 +53117,16 @@ fn frag(){
|
|
|
53120
53117
|
this._fatLineMaterial.setModelMatrix(this.object3D.transform.worldMatrix);
|
|
53121
53118
|
const width = webGPUContext.presentationSize[0];
|
|
53122
53119
|
const height = webGPUContext.presentationSize[1];
|
|
53123
|
-
if (width > 0 && height > 0) {
|
|
53124
|
-
this.
|
|
53120
|
+
if (width > 0 && height > 0 && (this._cachedResolution.x !== width || this._cachedResolution.y !== height)) {
|
|
53121
|
+
this._cachedResolution.set(width, height);
|
|
53122
|
+
this._fatLineMaterial.resolution = this._cachedResolution.clone();
|
|
53125
53123
|
}
|
|
53126
53124
|
}
|
|
53127
53125
|
super.nodeUpdate(view, passType, renderPassState, clusterLightingBuffer);
|
|
53128
53126
|
}
|
|
53127
|
+
destroy(force) {
|
|
53128
|
+
super.destroy(force);
|
|
53129
|
+
}
|
|
53129
53130
|
};
|
|
53130
53131
|
exports.FatLineRenderer = __decorateClass$7([
|
|
53131
53132
|
RegisterComponent(exports.FatLineRenderer, "FatLineRenderer")
|
|
@@ -16,6 +16,7 @@ import { ClusterLightingBuffer } from "../../gfx/renderJob/passRenderer/cluster/
|
|
|
16
16
|
export declare class FatLineRenderer extends RenderNode {
|
|
17
17
|
private _fatLineMaterial;
|
|
18
18
|
private _fatLineGeometry;
|
|
19
|
+
private _cachedResolution;
|
|
19
20
|
constructor();
|
|
20
21
|
onEnable(): void;
|
|
21
22
|
onDisable(): void;
|
|
@@ -35,4 +36,5 @@ export declare class FatLineRenderer extends RenderNode {
|
|
|
35
36
|
* Override nodeUpdate to automatically update FatLine-specific uniforms
|
|
36
37
|
*/
|
|
37
38
|
nodeUpdate(view: View3D, passType: PassType, renderPassState: RendererPassState, clusterLightingBuffer?: ClusterLightingBuffer): void;
|
|
39
|
+
destroy(force?: boolean): void;
|
|
38
40
|
}
|