From 88a524d71bf46bca1c65c3f7ed5fcd3f6edd1d5e Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 23 Sep 2024 01:46:23 -0700 Subject: Begin refactoring c# I want all the SetKeyword stuff to run whether or not the UI is shown. --- tooner_lighting.cginc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tooner_lighting.cginc') 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 { -- cgit v1.2.3