Search Unity

Resolved Is it possible to morph shapes using shader graph

Discussion in 'Shader Graph' started by unity_IpxdANggCs1roQ, Jul 13, 2019.

  1. unity_IpxdANggCs1roQ

    unity_IpxdANggCs1roQ

    Joined:
    Feb 19, 2018
    Posts:
    44
    I want to morph shape A (like primitive shape) into another shape B.

    I know Lerp Node mix two nodes, but it's not shape interpolation.

    Is there any solution to achieve this?
     
  2. studentutu

    studentutu

    Joined:
    Oct 22, 2017
    Posts:
    121
    Simple answer: you can't, you can use only - one mesh with shader (material), to implement something like morphing - you would need to create a shader that displaces vertices to the desired world space coordinate.
    I see that you can create something similar with Texture sampling and lerping between two textures (they will be vertices baked into it) and lerping from one sample texture to another sampling point and modify world position based on your custom lerp value