Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

use-built-in-shader-methods.md 1.5KB


uid: urp-docfx-use-built-in-shader-methods

Shader methods in URP

The Universal Render Pipeline (URP) has a library of High-Level Shader Language (HLSL) shader files that contain helper methods. You can import these files into your custom shader files and use the helper methods.

|Page|Description| |-|-| |Import a file from the URP shader library|Use the #include directive in HLSL to import a URP shader file.| |Transform positions in a custom URP shader|Transform vertex, fragment, normal and tangent positions between coordinate spaces.| |Use the camera in a custom URP shader|Get the position and direction of the camera.| |Use lighting in a custom URP shader|Get the lights in a scene, and calculate lighting.| |Use shadows in a custom URP shader|Get shadow data from lights in the scene, and calculate shadows.|

Additional resources