diff options
| author | yum <yum.food.vr@gmail.com> | 2025-02-18 16:35:22 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-02-18 16:35:22 -0800 |
| commit | 547c6064f6a8ab2749f496ce7ea2856e8cc1bcda (patch) | |
| tree | 080e30ef69f9e4daa476e529c9f015bd2cf77fa8 /features.cginc | |
| parent | 3087ea990dfea49c32a8a9d9f6ac9c1790817efc (diff) | |
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
Diffstat (limited to 'features.cginc')
| -rw-r--r-- | features.cginc | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
