We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e0d0e5 commit 0e7df80Copy full SHA for 0e7df80
src/nodes/input/ValueNode.ts
@@ -22,4 +22,16 @@ export class ValueNode extends UniformBaseNode {
22
protected override getUniformJsValue(): string {
23
return this.inputValue.stringValue;
24
}
25
+
26
+ override serialize(): Record<string, any> {
27
+ return {
28
+ ...super.serialize(),
29
+ value: this.inputValue.value
30
+ }
31
32
33
+ override unserialize(data: Record<string, any>): void {
34
+ super.unserialize(data);
35
+ this.inputValue.value = Number( data.value );
36
37
0 commit comments