05-02-2022, 07:18 PM
I've had my eye on this thread for a while, I'm currently making my first game in unity URP which features a telephone wire as well. It's only recently that I've started learning about shaders and challenged myself to recreate this shader both in shadergraph and coded manually. I've attached the hand made files for anyone who might want them.
(dont forget to rename the .cs file to a .hlsl file)
I haven't quite managed to recreate the "curving" effect described in the original blog post (so I didn't include it), but I might try again sometime in the future. (also trying to make them in shadergraph breaks shadows since shadergraph doesn't support multiple passes so I wouldn't recommend anyone else try)
(dont forget to rename the .cs file to a .hlsl file)
I haven't quite managed to recreate the "curving" effect described in the original blog post (so I didn't include it), but I might try again sometime in the future. (also trying to make them in shadergraph breaks shadows since shadergraph doesn't support multiple passes so I wouldn't recommend anyone else try)