Home Game Development unity – How to tear a gap in fabric sail rendered as a airplane mesh animated with a shader?

unity – How to tear a gap in fabric sail rendered as a airplane mesh animated with a shader?

0
unity – How to tear a gap in fabric sail rendered as a airplane mesh animated with a shader?

[ad_1]

I’ve a procedurally animated sailcloth. It’s only a sq. flat airplane mesh with 144 vertices.
I take advantage of a shader to control the vertices and make it “fill” with the wind.
All of that works nice.

Now how would I’m going about rendering injury on this flat airplane mesh?
If I have been to make use of a simulated fabric answer like Obi Cloth, it comes with tearing and holes out of the field, however the simulation is so costly that it’s unusable for my recreation (too many sails).
That’s why I switched to shader magic for the sail animation: it performs a lot better.

The drawback is how do I’m going about making holes/tears into these procedurally animated sails?

They all the time keep as a flat mesh, I might assume this should not be the toughest factor to do… But I’m utterly at a loss right here.

The holes will be wherever randomly, or at an actual vertex (procedural).
I wish to preserve all the pieces procedural( not chopping out holes in blender and switching between meshes, and so forth, as we’re a small staff).

I used Amplify Shader for the vertex displacement:
enter image description here

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here