Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to make a phone wire
#8
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)


Attached Files
.cs   CoiledWireURP.cs (Size: 3.58 KB / Downloads: 64)
.shader   CoiledWireURP.shader (Size: 2.8 KB / Downloads: 37)
Reply


Messages In This Thread
How to make a phone wire - by aliakbarm - 18-01-2021, 08:27 AM
RE: How to make a phone wire - by josemendez - 18-01-2021, 09:01 AM
RE: How to make a phone wire - by josemendez - 18-01-2021, 10:09 AM
RE: How to make a phone wire - by aliakbarm - 18-01-2021, 10:15 AM
RE: How to make a phone wire - by josemendez - 18-01-2021, 10:20 AM
RE: How to make a phone wire - by yusufbesim - 26-01-2021, 09:25 PM
RE: How to make a phone wire - by josemendez - 27-01-2021, 08:32 AM
RE: How to make a phone wire - by G_Gawi - 05-02-2022, 07:18 PM