Amp-Thread-ID: https://ampcode.com/threads/T-019f9d91-77c1-7206-a60f-ed6554ce92ab Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
44 lines
851 B
TypeScript
44 lines
851 B
TypeScript
import type { FxNodeDefinition } from "@lib/composition/index.js";
|
|
export const valueNode = [
|
|
"fxnode.shader.value",
|
|
{
|
|
version: 1,
|
|
title: "Value",
|
|
behavior: "standard",
|
|
style: "shader",
|
|
parameters: {
|
|
value: {
|
|
type: "number",
|
|
default: {
|
|
kind: "number",
|
|
value: 0,
|
|
},
|
|
step: 1,
|
|
},
|
|
},
|
|
sockets: {
|
|
value: {
|
|
title: "Value",
|
|
direction: "output",
|
|
type: "float",
|
|
maxIncomingLinks: 0,
|
|
visible: true,
|
|
value: null,
|
|
showValue: false,
|
|
},
|
|
},
|
|
ui: [
|
|
{
|
|
kind: "parameter",
|
|
parameter: "value",
|
|
},
|
|
{
|
|
kind: "socket",
|
|
socket: "value",
|
|
},
|
|
],
|
|
muteBypass: [],
|
|
migrations: [],
|
|
},
|
|
] as const satisfies readonly [string, FxNodeDefinition];
|