An implement of 2D lighting system in Unity.
- Unity 2019.3.0f
- Unity Universal Render Pipeline (URP)
- Implement with CommandBuffer.
- Support Universal Render Pipeline
- 2D textured light & procedural light.
- 2D soft shadows.
- Support DX, OpenGL, Vulkan & OpenES 3.0
See /Assets/Demo/SampleScene
for example
Simply put /Assets/2D Lighting
folder into your project.
Use branch built-in-pipeline
to avoid compiling errors with missing dependencies.
-
Create a
UniversalRenderPipelineAsset
withAssets > Create > Rendering > Universal Render Pipeline > Pipeline Asset
-
Create a Renderer with
Assets > Create > Rendering > Universal Render Pipeline > Forward Renderer
-
Assign this Renderer to the
UniversalRenderPipelineAsset
created before