summaryrefslogtreecommitdiffstats
path: root/tooner_lighting.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2024-09-23 01:46:23 -0700
committeryum <yum.food.vr@gmail.com>2024-09-23 13:41:42 -0700
commit88a524d71bf46bca1c65c3f7ed5fcd3f6edd1d5e (patch)
treeffc25a73064e9014921eecd08c2f76d453bb84ae /tooner_lighting.cginc
parent8bcfe9a6a31e4c4400cb0be4fb1823748ec7fcb2 (diff)
Begin refactoring c#
I want all the SetKeyword stuff to run whether or not the UI is shown.
Diffstat (limited to 'tooner_lighting.cginc')
-rw-r--r--tooner_lighting.cginc18
1 files changed, 18 insertions, 0 deletions
diff --git a/tooner_lighting.cginc b/tooner_lighting.cginc
index 970a965..24d240b 100644
--- a/tooner_lighting.cginc
+++ b/tooner_lighting.cginc
@@ -580,46 +580,64 @@ float2 get_uv_by_channel(v2f i, uint which_channel) {
#define GET_SAMPLER_PBR linear_repeat_s
#elif defined(_PBR_SAMPLER_CLAMP)
#define GET_SAMPLER_PBR linear_clamp_s
+#else
+#define GET_SAMPLER_PBR linear_clamp_s
#endif
#if defined(_PBR_OVERLAY0_SAMPLER_REPEAT)
#define GET_SAMPLER_OV0 linear_repeat_s
#elif defined(_PBR_OVERLAY0_SAMPLER_CLAMP)
#define GET_SAMPLER_OV0 linear_clamp_s
+#else
+#define GET_SAMPLER_OV0 linear_clamp_s
#endif
#if defined(_PBR_OVERLAY1_SAMPLER_REPEAT)
#define GET_SAMPLER_OV1 linear_repeat_s
#elif defined(_PBR_OVERLAY1_SAMPLER_CLAMP)
#define GET_SAMPLER_OV1 linear_clamp_s
+#else
+#define GET_SAMPLER_OV1 linear_clamp_s
#endif
#if defined(_PBR_OVERLAY2_SAMPLER_REPEAT)
#define GET_SAMPLER_OV2 linear_repeat_s
#elif defined(_PBR_OVERLAY2_SAMPLER_CLAMP)
#define GET_SAMPLER_OV2 linear_clamp_s
+#else
+#define GET_SAMPLER_OV2 linear_clamp_s
#endif
#if defined(_PBR_OVERLAY3_SAMPLER_REPEAT)
#define GET_SAMPLER_OV3 linear_repeat_s
#elif defined(_PBR_OVERLAY3_SAMPLER_CLAMP)
#define GET_SAMPLER_OV3 linear_clamp_s
+#else
+#define GET_SAMPLER_OV3 linear_clamp_s
#endif
#if defined(_RIM_LIGHTING0_SAMPLER_REPEAT)
#define GET_SAMPLER_RL0 linear_repeat_s
#elif defined(_RIM_LIGHTING0_SAMPLER_CLAMP)
#define GET_SAMPLER_RL0 linear_clamp_s
+#else
+#define GET_SAMPLER_RL0 linear_clamp_s
#endif
#if defined(_RIM_LIGHTING1_SAMPLER_REPEAT)
#define GET_SAMPLER_RL1 linear_repeat_s
#elif defined(_RIM_LIGHTING1_SAMPLER_CLAMP)
#define GET_SAMPLER_RL1 linear_clamp_s
+#else
+#define GET_SAMPLER_RL1 linear_clamp_s
#endif
#if defined(_RIM_LIGHTING2_SAMPLER_REPEAT)
#define GET_SAMPLER_RL2 linear_repeat_s
#elif defined(_RIM_LIGHTING2_SAMPLER_CLAMP)
#define GET_SAMPLER_RL2 linear_clamp_s
+#else
+#define GET_SAMPLER_RL2 linear_clamp_s
#endif
#if defined(_RIM_LIGHTING3_SAMPLER_REPEAT)
#define GET_SAMPLER_RL3 linear_repeat_s
#elif defined(_RIM_LIGHTING3_SAMPLER_CLAMP)
#define GET_SAMPLER_RL3 linear_clamp_s
+#else
+#define GET_SAMPLER_RL3 linear_clamp_s
#endif
struct PbrOverlay {