|
|
|
|
|
|
// Shader targeted for low end devices. Single Pass Forward Rendering. Shader Model 2 |
|
|
|
// Shader targeted for low end devices. Single Pass Forward Rendering. Shader Model 2 |
|
|
|
Shader "ScriptableRenderPipeline/LightweightPipeline/NonPBR" |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
Pass |
|
|
|
{ |
|
|
|
Name "LD_SINGLE_PASS_FORWARD" |
|
|
|
Tags { "LightMode" = "LightweightForward" } |
|
|
|
|
|
|
|
// Use same blending / depth states as Standard shader |
|
|
|
|
|
|
|
|
|
|
Pass |
|
|
|
{ |
|
|
|
Name "LD_SHADOW_CASTER" |
|
|
|
Tags { "Lightmode" = "ShadowCaster" } |
|
|
|
|
|
|
|
ZWrite On ZTest LEqual |
|
|
|
|
|
|
// This pass it not used during regular rendering, only for lightmap baking. |
|
|
|
Pass |
|
|
|
{ |
|
|
|
Name "LD_META" |
|
|
|
Tags{ "LightMode" = "Meta" } |
|
|
|
|
|
|
|
Cull Off |
|
|
|