Hello there !
I have another question about shader graphs !
I’m trying to transform an old shader script in the URP using a shader graph.
The problem is that i don’t really understand how both of them works !
What i now is that my old shader works like I want and it use an Input struct with a color parameter :
struct Input
{
float4 color : COLOR;
float3 localPos;
float3 terrain;
};
this structure get some data from the uv and local position of the mesh using it, that I understand. About the color, I don’t know where it comes from and where can I get the same field in a shader Graph. Is it the same variable than “_Color (“Color”, Color) = (1,1,1,1)” which is the color set in the inspector i think ?
I’m doubting it so I’m a little lost !
If someone can give me a brief explanation, that would be sweet, thanks !
Clément.