Facepunch / sbox-issues

175 stars 12 forks source link

Add a "TintColor" node to shadergraph #4195

Closed ShadowBrian closed 6 months ago

ShadowBrian commented 11 months ago

For?

S&Box

What can't you do?

In the old system if you used a Vertex Color node in a shader made in shadergraph it'd get filled out by setting the tint of an object, in the new Scene system it seems like tinting is done slightly differently.

How would you like it to work?

I would like some obvious way to get the model's tint set in the scene editor, probably a node or perhaps just a button in the color node that makes it get the tint value instead.

What have you tried?

You can manually code a shader that gets the tint properly I think, since it's likely just setting the tint value of the complex shader, but matching the name of that is a bit tricky at the moment I believe.

Additional context

No response

aylaylay commented 6 months ago

I've added a Tint node that will grab the tint color of the scene object, I'll add something shortly to change the tint of the preview

aylaylay commented 6 months ago

sbox-dev_ELn53pVfKS

ShadowBrian commented 6 months ago

Perfect! Its been so long I don't even remember what I needed this for but I will mark it as completed.