Rasagar/Library/PackageCache/com.unity.render-pipelines.universal/Documentation~/use-built-in-shader-methods.md

23 lines
1.4 KiB
Markdown
Raw Normal View History

2024-08-26 13:07:20 -07:00
---
uid: urp-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-built-in-shader-methods-import.md)|Use the `#include` directive in HLSL to import a URP shader file.|
|[Transform positions in a custom URP shader](use-built-in-shader-methods-transformations.md)|Transform vertex, fragment, normal and tangent positions between coordinate spaces.|
|[Use the camera in a custom URP shader](use-built-in-shader-methods-camera.md)|Get the position and direction of the camera.|
|[Use lighting in a custom URP shader](use-built-in-shader-methods-lighting.md)|Get the lights in a scene, and calculate lighting.|
|[Use shadows in a custom URP shader](use-built-in-shader-methods-shadows.md)|Get shadow data from lights in the scene, and calculate shadows.|
## Additional resources
- [Writing custom shaders](writing-custom-shaders-urp.md)
- [Upgrade custom shaders for URP compatibility](urp-shaders/birp-urp-custom-shader-upgrade-guide.md)
- [HLSL in Unity](https://docs.unity3d.com/Manual/SL-ShaderPrograms.html)
- [Shader methods in Scriptable Render Pipeline (SRP) Core](https://docs.unity3d.com/Packages/com.unity.render-pipelines.core@17.0/manual/built-in-shader-methods.html)