summaryrefslogtreecommitdiffstats
path: root/pbr.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-09-18 23:24:49 -0700
committeryum <yum.food.vr@gmail.com>2024-09-18 23:24:49 -0700
commitb904835dc91db76627ecb08636cd5c339a07a1df (patch)
treecf0bc3b06f318e802b7d855e78a9ddcdbec6d3a2 /pbr.cginc
parent0b12f0aff502b04e48efd3141637fc0bb20a7f2d (diff)
Add shader inlining tooling
This should solve the issue of Unity failing to fully recompile my fucking shader.
Diffstat (limited to 'pbr.cginc')
-rw-r--r--pbr.cginc9
1 files changed, 3 insertions, 6 deletions
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"