From b904835dc91db76627ecb08636cd5c339a07a1df Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 18 Sep 2024 23:24:49 -0700 Subject: Add shader inlining tooling This should solve the issue of Unity failing to fully recompile my fucking shader. --- pbr.cginc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'pbr.cginc') diff --git a/pbr.cginc b/pbr.cginc index b9582a0..3bb6be0 100644 --- a/pbr.cginc +++ b/pbr.cginc @@ -1,9 +1,3 @@ -#ifndef __PBR_INC -#define __PBR_INC - -#include "UnityPBSLighting.cginc" -#include "AutoLight.cginc" - #include "globals.cginc" #include "filament_math.cginc" #include "globals.cginc" @@ -11,6 +5,9 @@ #include "MochieStandardBRDF.cginc" #include "poi.cginc" +#ifndef __PBR_INC +#define __PBR_INC + #if defined(_LTCGI) #include "Third_Party/at.pimaker.ltcgi/Shaders/LTCGI_structs.cginc" -- cgit v1.2.3