Integration
Render pipelines
Compare URP, HDRP and the Built-in Render Pipeline, set each one up, and work around the Windows Vulkan Editor.
Leafshaper works in URP, HDRP and the Built-in Render Pipeline. Its shaders, Leafshaper/Tree and Leafshaper/Tree Impostor, have a part for each pipeline, so the same recipes, prefabs and materials work in all three. Switching a project to another pipeline needs no material conversion and no rebake.
| Feature | URP | HDRP | Built-in |
|---|---|---|---|
| Tree and impostor shaders | Yes | Yes | Yes |
| Wind, seasons and snow | Yes | Yes | Yes |
| Adaptive Probe Volumes | Yes | Yes | No |
| Drawing through Kiwi Foliage | Yes | Yes | Yes |
| Depth occlusion with Kiwi Foliage | Yes | No | Yes |
| LOD bias comes from | Quality settings | The HDRP asset | Quality settings |
URP
Assign the URP asset under Project Settings > Graphics and check per-level overrides under Quality. The URP template turns on the GPU Resident Drawer, which leaves out distant Leafshaper trees, so Leafshaper asks once whether to turn it off. See Large forests. For leaf edges, use temporal antialiasing with MSAA off on that camera, because URP skips temporal antialiasing while MSAA is on.
HDRP
Assign the HDRP asset under Project Settings > Graphics. HDRP takes the LOD bias from its pipeline asset, so trees change level at the distance set there. HDRP lights in physical units: use a sun of tens of thousands of lux with a matching exposure, as the samples do. For leaf edges, use temporal antialiasing at quality High with Anti-flickering at 1.
Built-in Render Pipeline
No setup is needed. Without temporal antialiasing, 4× MSAA softens leaf edges through alpha to coverage.
Samples
The samples pick the terrain material and lighting for the active pipeline when a scene opens, and player builds keep all three terrain materials.
How the shaders pick a pipeline
The URP and HDRP parts of the Leafshaper shaders sit in their own shader sources next to the shaders, such as LeafshaperTree.Universal.leafshapershader. Leafshaper builds each one into a shader when its pipeline is installed, and into an empty stand-in otherwise, and the tree shaders take their passes from it. So projects without URP or HDRP import without errors, and no shader part depends on a package requirement, which the Windows Editor on Vulkan can leave out. After you add or remove URP or HDRP, the shaders rebuild once the scripts compile.
Still stuck?
Bring the recipe with you.
Include the Leafshaper, Unity and render-pipeline versions, the operating system and graphics API, the first Console error, the preset and seed, and the steps that reproduce the problem.