Facepunch / sbox-issues

178 stars 12 forks source link

[Shadergraph] Subgraphs #5917

Open QuackCola opened 4 months ago

QuackCola commented 4 months ago

For?

S&Box

What can't you do?

Im toying with a shrimple Gerstner wave setup and I've reached the point where I need to have 4 instances of the setup below. Id really much prefer to put the node setup below into a subgraph of which then I can just reference the subgraph node 4 times instead.

Screenshot 2024-07-25 040426

How would you like it to work?

What have you tried?

Duplicating the setup 4 times.

Additional context

I know Laylad really wants to avoid adding another asset just for shadergraph subgraphs so perhaps having a .shdrgrph do double duty is the way to go?

QuackCola commented 3 months ago

in the situation where a subgraph has outputs connected to its inputs and the inputs of that subgraph get deleted, instead of removing the link from the removed input. The link should be highlighted red along with a warning in the output widget