From 547c6064f6a8ab2749f496ce7ea2856e8cc1bcda Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 18 Feb 2025 16:35:22 -0800 Subject: Add matcaps and rim lighting * Add min brightness * MainTex and BumpMap can be independently tiled * Fix outlines * Remove lightDirTS (unused) * Normalize i.normal in pixel shader * Elide unused AO when locked * Wrap lines at 80 columns --- features.cginc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'features.cginc') diff --git a/features.cginc b/features.cginc index 5040db0..53f8c38 100644 --- a/features.cginc +++ b/features.cginc @@ -1,12 +1,38 @@ #ifndef __FEATURES_INC #define __FEATURES_INC +//ifex _Ambient_Occlusion_Enabled==0 +#pragma shader_feature_local _AMBIENT_OCCLUSION +//endex + //ifex _Wrapped_Lighting_Enabled==0 #pragma shader_feature_local _WRAPPED_LIGHTING //endex + +//ifex _Min_Brightness_Enabled==0 +#pragma shader_feature_local _MIN_BRIGHTNESS +//endex + +//ifex _Outlines_Enabled==0 +#pragma shader_feature_local _OUTLINES +//endex //ifex _Outline_Mask_Enabled==0 #pragma shader_feature_local _OUTLINE_MASK //endex +//ifex _Matcap0_Enabled==0 +#pragma shader_feature_local _MATCAP0 +#pragma shader_feature_local _MATCAP0_MASK +//endex + +//ifex _Rim_Lighting0_Enabled==0 +#pragma shader_feature_local _RIM_LIGHTING0 +#pragma shader_feature_local _RIM_LIGHTING0_MASK +//endex +//ifex _Rim_Lighting1_Enabled==0 +#pragma shader_feature_local _RIM_LIGHTING1 +#pragma shader_feature_local _RIM_LIGHTING1_MASK +//endex + #endif // __FEATURES_INC -- cgit v1.2.3