#How to pass the Sprite Renderer's Color into the given Shader Graph?

1 messages · Page 1 of 1 (latest)

hollow latch
#

Hello again, so I have been making a shader graph and I realized that the color I put into the sprite renderer doesn't show up through the material using the shader graph.

Is there a way to have it so that the color from the sprite renderer passes through the shader graph and uses that color instead of whatever the base color is in the shader graph?

I provided the shader graph I have incase anyone has a solution to this:

lone kettle
hollow latch
#

Not gonna lie, I'm not actually sure how to google it correctly. I know I tried to ask the same thing and I didn't get a good answer

#

So yeah, you're saying it's like _MainTex but you need to put in the color too?

lone kettle
hollow latch
#

Okay, so it turns out that the shader doesn't pass in the color is because the Type is set to Unlit, when it should be Sprite Unlit.

While it works properly now, the sprites in the 3D scene now act strangely.

I'll figure this out later, but thank you for the help!