Search Unity

Question Is it possible/How to recreate this shader

Discussion in 'Shader Graph' started by bjedlowski97, Sep 30, 2019.

  1. bjedlowski97

    bjedlowski97

    Joined:
    Feb 13, 2018
    Posts:
    46
  2. neoshaman

    neoshaman

    Joined:
    Feb 11, 2011
    Posts:
    6,493
    1. BAKE each chunk's pivot position into the vertex color of that chunk (convert to object's space normalized to handle the precision)
    2. BAKE intensity in the alpha of the vertex of each chunk
    3. ADD 1 slider to the property block
    4. ADD a vector 2 to pass by code

    Then use a vertex shader to compute offset and rotation divided by intensity, control offset by passing data to to the material with one slider, control rotation by passing the sin and cos in the vector 2.

    Since the data is really only in teh vertex and not teh chunk, you can do more, building in fortnite is done teh same way, they use different intensity data per vertex to have the material fly down and bend under impact.
     
  3. bjedlowski97

    bjedlowski97

    Joined:
    Feb 13, 2018
    Posts:
    46
    Thank you for this information, is there any special program I should use to do this. I have maya if it is possible to do that in the program