diff options
| author | yum <yum.food.vr@gmail.com> | 2025-02-12 01:24:49 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-02-12 01:24:49 -0800 |
| commit | caf02458737f93b20978f41613ad5b56e074e154 (patch) | |
| tree | b7b3c0ab468d858d71f4fa96f2b420b7ad5ab98a /globals.cginc | |
| parent | 498ffebe9524871e9442e58eb0c3760a5463ffbc (diff) | |
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
Diffstat (limited to 'globals.cginc')
| -rw-r--r-- | globals.cginc | 16 |
1 files changed, 16 insertions, 0 deletions
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
|
