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 worked on the fundamentals of writing HLSL shaders for the new URP pipeline by studying a very common shader for modern video games – a PBS lit shader.

We talked about all the built-in helpers and functions the URP offers to help us design lighting, especially for such a common type of shading. We also focused on shader keywords and the additional data structures that physically based shading requires, compared to our previous unlit shader.

We then coded the logic of our shaders to display various properties and properly initialize the data structures. Finally, we saw how to pass all the required data in our vertex and fragment shader functions.

Now, we are fairly familiar with the basics of HLSL-based shaders for the Unity URP pipeline, and we even know where to look for built-in macros and handy ready-made functions. This is important for an advanced Unity technical artist because it means that you will be able to explore the ecosystem...

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