HDRP Shader Graph Issues - Lack of Understanding or Issue

Hello,

I am using HDRP and have recently been trying out Shader Graph to create a “direction of electric flow or water flow” on some objects. I have watched many videos and am still struggling to understand 1) the nodes themselves, and 2) Why it isn’t working as the videos i follow.

Basically, when i am recreating the shaders from the videos I am not getting the same results. It either partially works with some strange issues or doesn’t work at all. I’ve gotten one to partially work from this video, which is very close to what i am trying to do: (173) How To Create A Progress Fill Shader In Unity | Unity Shader Graph Tutorial - YouTube

I know I just need to mess around with the numerical values a bit to get what i need, once I get it working fully. But my main issue is how it operates. For testing purposes, I have a cylinder that I am trying to fill with a color over time. But the object appears to change values as I move (both scene and game windows). Images for reference:

Just a tad to the right of the player (scene view)
8720766--1179144--upload_2023-1-10_16-46-32.png

Just a tad left of the player (scene view)
8720766--1179147--upload_2023-1-10_16-46-46.png

The same thing happens in the game view. If i move back and forward, the object appears to stay the same but if I move laterally it changes. My main guess is that it has something to do with a camera render distance setting, but I hardly work with shaders. Any help is appreciated. Some settings of the Shader and Camera below, let me know if I need to provide any more info.

Thanks internet peoples

I can only guess from this that you are using the position node to make the gradient ?
And it is set in “world” mode.
You probably want it to be in “object” mode to have the gradient relative to the object position/scale.
Or you need to switch to “absolute world”, as HDRP is using camera relative rendering : all objects are rendered as if they were “attached” to the camera, for increased precision when far away from the scene’s center.

Sorry for the late response, but that was the issue. I hadn’t changed the Space from World to Object in the Position node. Thank you for the assistance!