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

Summary

In this chapter, we explored various techniques and tools for improving the efficiency of our shader code.

We first talked about lighting models and discussed how Unity provides us with several built-in ones. We saw that they always do a trade-off between realism and power usage and that your target platform has a big impact on the kind of lighting you can use in your games.

Then, we dove into low-level optimization and studied different scoped improvements for shader code, from per-platform computation precision to mathematical operation complexity, alpha testing caveats, and even SRP Batcher compatibility.

Finally, we had a peek at another approach and introduced the basics of writing a custom SRP shader in Unity to completely tune the rendering process to our liking. We saw how the engine gives us easy-to-use and safe tools for customizing our visuals, and how we can debug the render steps in detail thanks to the Frame Debugger window.

As a final note, always...

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