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 discussed the fundamentals of programming shaders with Unity’s new URP.

We studied the evolutions of ShaderLab and low-level hardware shader logic syntax between the built-in render pipeline and our new setup, and in particular, we zoomed into some common macro translations that are worth mentioning. We also got an overview of the frequently used tags to help the Unity engine handle cross-platform shaders that contain multiple SubShader and/or Pass tags.

Finally, we applied the theory to a simple example and implemented an unlit URP shader with two properties: a base color and a main texture. We also took this opportunity to look at the material inspector and how, with the new SRPs, it now provides us with some interesting extra options that are material-specific.

This concludes our first look at how to program HLSL-based shaders for the Unity URP – we now have a good idea of how these scripts are structured and how this structure...

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