- Home /
Use Color from Sprite Shape Renderer inside a Shader Graph
I want to use the "Color" field from a "Sprite Shape Renderer" in my Shader Graph and be able to add some texture to it. But I do not seem to find any information on how to use this field in my Shader Graph. I have already tried giving a color field reference name _Color.
The material created by ShaderGraph is assigned to this Sprite Shape is in "Fill Material" (called DissolveMaterial) in the picture below.
Answer by syyhkynen · Mar 05, 2021 at 11:59 AM
You need to use the reference _RenderColor to use the color from the sprite shape component :)
Your answer
Follow this Question
Related Questions
Rigged 2D Sprite looks weird after adding a shadergraph material 0 Answers
Stencil inside Stencil? (Multiple masks on same object) 1 Answer
How to get the spriterender default material in the code 1 Answer
Shadergraph material messes with sorting layer of sprites in URP 0 Answers
Shader doesn't work when object is inverted by axis 1 Answer