Integration
Render pipelines
Compare URP, HDRP and the Built-in Render Pipeline, reconvert shaders after a switch, and work around the Windows Vulkan Editor.
Kiwi Foliage Renderer works in URP 17, HDRP 17 and the Built-in Render Pipeline. The renderer, its sources and Kiwi Foliage/Foliage Lit need no setup per pipeline.
| Feature | URP | HDRP | Built-in |
|---|---|---|---|
| GPU culling, levels of detail and cross-fade | Yes | Yes | Yes |
| Shadow culling | Yes | Yes | Yes |
| Occlusion culling | Yes | No | Yes |
| Foliage Lit and impostors | Yes | Yes | Yes |
| Shader conversion | Yes | Yes | Yes |
| Leafshaper trees | Yes | Yes | Yes |
URP
The renderer requests the camera depth for occlusion culling itself; you do not need to turn on Depth Texture in the pipeline asset.
HDRP
HDRP keeps frustum, distance, screen-size and shadow culling, and the renderer reports that occlusion culling is not available. Instances draw with HDRP's camera-relative rendering, so large worlds keep their precision.
Built-in Render Pipeline
The renderer turns on the camera's depth texture when occlusion culling is on.
Converted shaders
Shader conversion compiles the procedural variant of each pass for the active render pipeline. After you switch pipelines, open Window > Kiwi Foliage > Shader Setup and convert again, or use Convert Every Shader Now in the renderer's Setup tab. See Shaders.
Samples
The Foliage Showcase opens in all three pipelines. It picks the terrain material for the active pipeline, and in HDRP it adds a sun in lux, a daylight exposure and a sky while the scene is open.
How the shaders pick a pipeline
The URP and HDRP parts of Foliage Lit, the impostor shader and the Shader Integration sample sit in their own shader sources, such as KiwiFoliageLit.Universal.kiwifoliageshader. Kiwi Foliage builds each one into a shader when its pipeline is installed, and into an empty stand-in otherwise, and the 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.
Still stuck?
Bring the renderer state with you.
Include the Kiwi Foliage version, Unity and render-pipeline versions, the graphics API, the Foliage Renderer's header state and statistics, the Shader Setup row for any shader involved, and a minimal scene.