diff options
| author | yum <yum.food.vr@gmail.com> | 2026-02-25 18:55:49 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-02-25 18:55:49 -0800 |
| commit | e7c7b5e9fd1dc14755da97b0f4edb0bc92c744b3 (patch) | |
| tree | 5a1cbf52ca16328e9beccc4b4ac7b09414899924 /globals.cginc | |
| parent | 0e0584159c47c0229e1ba2120dcc782c7250d09f (diff) | |
Plumb matcaps & rim lighting
Diffstat (limited to 'globals.cginc')
| -rwxr-xr-x | globals.cginc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/globals.cginc b/globals.cginc index 600ecce..99afdad 100755 --- a/globals.cginc +++ b/globals.cginc @@ -248,6 +248,40 @@ float _Impostors_Debug_Depth; float3 _Impostors_Main_Camera_Pos; #endif // _IMPOSTORS +#define MATCAP_MODE_REPLACE 0 +#define MATCAP_MODE_ADD 1 +#define MATCAP_MODE_MULTIPLY 2 +#define MATCAP_MODE_SUBTRACT 3 +#define MATCAP_MODE_ADD_PRODUCT 4 + +#if defined(_MATCAP0) +texture2D _Matcap0; +float _Matcap0_Strength; +int _Matcap0_Mode; +float _Matcap0_Invert; +#if defined(_MATCAP0_QUANTIZATION) +float _Matcap0_Quantization_Steps; +#endif // _MATCAP0_QUANTIZATION +#if defined(_MATCAP0_MASK) +texture2D _Matcap0_Mask; +float4 _Matcap0_Mask_ST; +#endif // _MATCAP0_MASK +#endif // _MATCAP0 + +#if defined(_RIM_LIGHTING0) +float4 _Rim_Lighting0_Color; +float _Rim_Lighting0_Center; +float _Rim_Lighting0_Blur; +int _Rim_Lighting0_Mode; +#if defined(_RIM_LIGHTING0_QUANTIZATION) +float _Rim_Lighting0_Quantization_Steps; +#endif // _RIM_LIGHTING0_QUANTIZATION +#if defined(_RIM_LIGHTING0_MASK) +texture2D _Rim_Lighting0_Mask; +float4 _Rim_Lighting0_Mask_ST; +#endif // _RIM_LIGHTING0_MASK +#endif // _RIM_LIGHTING0 + #if defined(_VERTEX_DEFORMATION) float _Vertex_Deformation_Slot_0_Enabled; int _Vertex_Deformation_Slot_0_Opcode; |
