Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Draw custom spiral
#1
How I can draw a spiral on the rope? 
Like this:

https://encrypted-tbn0.gstatic.com/image...Q&usqp=CAU

How to use custom shaders with the rope? Is there any sample?
Reply
#2
(02-10-2022, 09:58 AM)lacasrac Wrote: How I can draw a spiral on the rope? 
Like this:

https://encrypted-tbn0.gstatic.com/image...Q&usqp=CAU

How to use custom shaders with the rope? Is there any sample?

Hi!

Ropes are just meshes, rendered using a MeshFilter/MeshRenderer. So you write shaders for them like you do for any other object in Unity, there’s no difference whatsoever. Nothing specific you need to do in order to write a shader “for ropes”.

Just write a shader that draws a spiral. If you’re new to shaders I’d suggest checking a few tutorials on the subject.

Kind regards,
Reply