Home Coding, Scripting, Shaders

[ASK]unity shader code - Moving outside vertices to center of object

I have a 3D flower model that blossoms. I want to move it's petal to center of the object to close the flower. How do I do it with shader code in unity? I already painted the vertex color to red on the petal and black on the center.

Replies

  • arrangemonk
    Offline / Send Message
    arrangemonk polycounter lvl 17

    could you show the flower and describe how you want to make it bloom.

    intuitively i would scale it (vertex = (((vertex- center ) * scale) +center), but i wouldnt use an uniform scale but play aroube sinus of the y coordinate of the heig

    hedit or smoothstep, im a bit rusty with shader code

Sign In or Register to comment.