Facepunch / sbox-issues

176 stars 12 forks source link

[Shadergraph] Store preview render options in shadergraph asset #5948

Open QuackCola opened 3 months ago

QuackCola commented 3 months ago

For?

S&Box

What can't you do?

Im toying with a particular shader and with that i always want to have the skybox disabled and the background color set to black. Now when i close the shadergraph asset and the editor and re-open the asset again render options are set to the defaults. I personally think the render options should be saved to the shadergraph asset on disk.

How would you like it to work?

Have the preview Render options be saved inside the shadergraph asset and then applied back when the asset is opened,

What have you tried?

Setting the render options every time i open the asset.

Additional context

No response

aylaylay commented 3 months ago

I remember considering this, I don't remember why I decided against it but i'll consider it again

aylaylay commented 3 months ago

Is it a case of you want them saved per shader or would globally be better (in cookies) which I thought they already were but maybe not

QuackCola commented 3 months ago

Is it a case of you want them saved per shader or would globally be better (in cookies) which I thought they already were but maybe not

I would in my case id want them to be per shader