Reader small image

You're reading from  Become a Unity Shaders Guru

Product typeBook
Published inJul 2023
Reading LevelN/a
PublisherPackt
ISBN-139781837636747
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Mina Pêcheux
Mina Pêcheux
author image
Mina Pêcheux

Mina Pêcheux is a freelance content creator who has been passionate about game development since an early age. She is a graduate of the French Polytech School of Engineering in applied mathematics and computer science. After a couple of years of working as a data scientist and web developer in startups, she turned to freelancing and online instructional content creation to reconnect with what brightens her days: learning new things everyday, sharing with others and creating multi-field projects mixing science, technology, and art.
Read more about Mina Pêcheux

Right arrow

Animating fishes and butterflies

To kick things off, let’s discuss a very common application of vertex displacement – the creation of a simple movement animation for a fish or a butterfly.

To do this, we’ll first learn the basics of creating vertex displacement in the Shader Graph; then, we’ll focus on the fish animation and see how to introduce time in the mix. Finally, we’ll reapply these concepts to our butterfly model and adapt the previous logic to create a wing-flapping movement.

Moving fishes thanks to a vertex displacement shader

Our goal will be to use a shader to automatically have our fishes wobble in the water, like this:

Figure 12.1 – A school of fishes deformed and animated thanks to vertex displacement shaders

Figure 12.1 – A school of fishes deformed and animated thanks to vertex displacement shaders

First things first, we need to create our FishWobbling shader and learn how to do vertex displacement. Because we’re working on 3D models, this time, we’ll use the Lit...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Become a Unity Shaders Guru
Published in: Jul 2023Publisher: PacktISBN-13: 9781837636747

Author (1)

author image
Mina Pêcheux

Mina Pêcheux is a freelance content creator who has been passionate about game development since an early age. She is a graduate of the French Polytech School of Engineering in applied mathematics and computer science. After a couple of years of working as a data scientist and web developer in startups, she turned to freelancing and online instructional content creation to reconnect with what brightens her days: learning new things everyday, sharing with others and creating multi-field projects mixing science, technology, and art.
Read more about Mina Pêcheux