Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Shaders/ShaderLibrary - DepthOnlyPass.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

#endif

#if UNITY_VERSION >= 201930
#include "Packages/com.unity.render-pipelines.universal/Shaders/DepthOnlyPass.hlsl"
#else
#include "Packages/com.unity.render-pipelines.lightweight/Shaders/DepthOnlyPass.hlsl"
#endif

#endif
4 changes: 4 additions & 0 deletions Shaders/ShaderLibrary - Input.hlsl
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#ifndef LWRPSHADRES_SHADERLIBRARY_INPUT
#define LWRPSHADRES_SHADERLIBRARY_INPUT

#if UNITY_VERSION >= 201930
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
#else
#include "Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/Core.hlsl"
#endif

#ifndef NO_MAIN_TEXTURE

Expand Down
4 changes: 4 additions & 0 deletions Shaders/ShaderLibrary - Lighting.hlsl
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#ifndef LWRPSHADRES_SHADERLIBRARY_LIGHTING
#define LWRPSHADRES_SHADERLIBRARY_LIGHTING

#if UNITY_VERSION >= 201930
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
#else
#include "Packages/com.unity.render-pipelines.lightweight/ShaderLibrary/Lighting.hlsl"
#endif

float4 ComputeShadowCoord(float3 ws, float4 cs)
{
Expand Down
4 changes: 4 additions & 0 deletions Shaders/ShaderLibrary - ShadowPass.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

#endif

#if UNITY_VERSION >= 201930
#include "Packages/com.unity.render-pipelines.universal/Shaders/ShadowCasterPass.hlsl"
#else
#include "Packages/com.unity.render-pipelines.lightweight/Shaders/ShadowCasterPass.hlsl"
#endif

#endif