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

Having fun with overlay textures, dissolves, and holograms

For this final series of 2D shaders, we will examine useful yet easy-to-implement shader effects that can be directly applied in video games to show a specific state of a character or have it appear in an interesting way.

Namely, we will see how to overlay a texture on top of our sprite with various mixing operations, create a parametrized dissolve effect, and make our image look like a shiny hologram.

Showing an overlay texture

To start this series of advanced shaders, let’s do an easy one: a basic texture overlay with controllable parameters. This is typically something that is very quick to do with shaders in a game engine and pretty much impossible without them.

In short, the idea is simply to use some mix factors to blend the colors of our original sprite with the colors of a user-defined overlay texture in a dynamic and easy-to-tweak way. You might remember that we already talked about that sort of...

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