← All resources

Porting Shader Code from Built-in RP to LWRP (johnsietsma, Oct 2018)

Auto-discovered

Library / Codebase Intermediate

johnsietsma, Oct 2018

Visit resource ↗

Description

The LWRPShaders wiki page in John Sietsma's ExtendingLWRP GitHub repo documents unofficial steps for porting custom Built-in RP shaders to Unity's Lightweight Render Pipeline. It warns preview APIs stale quickly and prefers Shader Graph or legacy unlit tests before a hand port.

Topics include RenderPipeline tags, LightMode values, HLSLcc pragmas, HLSLPROGRAM blocks, lightweight ShaderLibrary includes, UnityPerMaterial CBUFFER batching, and replacements for transforms, samplers, fog, and lighting macros.

Intermediate authors hand-porting complex effects when Shader Graph is insufficient need solid pass structure; surface shaders are unsupported and lit ports are harder.

One free GitHub wiki with headings and HLSL samples, linked from ExtendingLWRP home and Felipe Lira's PBR example.

Still referenced in curated BiRP-to-URP migration lists for practical rewrite checklists.