-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Become a Unity Shaders Guru
By :

After this quick overview of the new shader script structure for URP, we now know that there has been an important change with the includes.
Thus, to better understand why and how it has changed, let’s briefly discuss how to import the new core shader tools for URP/HLSL shader scripts and how to update some of our most common built-in variables and function calls provided via macros. We will then talk about the two important shader tags you need to be aware of when writing shaders for URP.
As we discussed in the Structuring a Unity HLSL shader section, the new HLSL-based shader scripts cannot use the classic .cginc
shader includes, as their predecessors did. Because they are based on the HLSL language, they have to include libraries written in that language, and more precisely in our case, modules from the new URP shader library.
The most common is the following:
#
include "Packages/com...