From caf02458737f93b20978f41613ad5b56e074e154 Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 12 Feb 2025 01:24:49 -0800 Subject: Add a bunch of features * stereo instancing * outlines * shadows (casting & receiving) * unity fog * blend modes * wrapped lighting (generalized half lambertian) * diffuse & specular have independent knobs Also: * fix bug where shadow caster wouldn't clip in cutout mode. * remove a bunch of unused params * use ifex to minimize size of locked materials (more to be done probably) * improve formatting --- globals.cginc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'globals.cginc') diff --git a/globals.cginc b/globals.cginc index 5fc9a95..b92dbbe 100644 --- a/globals.cginc +++ b/globals.cginc @@ -1,6 +1,8 @@ #ifndef __GLOBALS_INC #define __GLOBALS_INC +SamplerState linear_repeat_s; + sampler2D _MainTex; float4 _MainTex_ST; fixed4 _Color; @@ -11,6 +13,12 @@ float _BumpScale; sampler2D _OcclusionMap; float _OcclusionStrength; +float _Shadow_Strength; +//ifex _Wrap_NoL_Strength>0 +float _Wrap_NoL_Diffuse_Strength; +float _Wrap_NoL_Specular_Strength; +//endex + float _Clip; int _Mode; float _Smoothness; @@ -21,4 +29,12 @@ float _reflectance; float _specularAntiAliasingVariance; float _specularAntiAliasingThreshold; +#if defined(OUTLINE_PASS) +float4 _Outline_Color; +float _Outline_Width; +#if defined(_OUTLINE_MASK) +texture2D _Outline_Mask; +#endif +#endif + #endif // __GLOBALS_INC -- cgit v1.2.3