diff options
| author | yum <yum.food.vr@gmail.com> | 2025-08-06 16:42:42 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-08-06 16:42:42 -0700 |
| commit | 99d161288bfe2d10c331c97e6b7571f9c884e912 (patch) | |
| tree | 6ef130c4801de52f697c8d6996d9c4b0fb5f3964 /globals.cginc | |
initial commit
Diffstat (limited to 'globals.cginc')
| -rw-r--r-- | globals.cginc | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/globals.cginc b/globals.cginc new file mode 100644 index 0000000..2ce282b --- /dev/null +++ b/globals.cginc @@ -0,0 +1,115 @@ +#ifndef __GLOBALS_INC +#define __GLOBALS_INC + +#include "features.cginc" + +SamplerState point_repeat_s; +SamplerState linear_repeat_s; +SamplerState bilinear_repeat_s; +SamplerState linear_clamp_s; +SamplerState trilinear_repeat_s; + +float4 _Color; +int _Mode; + +float _Smoothness; +float _Metallic; + +float _Specular_AA_Variance; +float _Specular_AA_Threshold; +float _BRDF_Specular_Min_Denom; + +#if defined(_SEA_FX) +float _Sea_FX_Derivatives_SS_Filtering_Factor; +#endif + +#if defined(_SEA_FX_HEIGHTMAPS_Y_0) +texture2D _Sea_FX_Heightmaps_Y_0; +float4 _Sea_FX_Heightmaps_Y_0_ST; +#endif +#if defined(_SEA_FX_HEIGHTMAPS_Y_1) +texture2D _Sea_FX_Heightmaps_Y_1; +float4 _Sea_FX_Heightmaps_Y_1_ST; +#endif +#if defined(_SEA_FX_HEIGHTMAPS_Y_2) +texture2D _Sea_FX_Heightmaps_Y_2; +float4 _Sea_FX_Heightmaps_Y_2_ST; +#endif +#if defined(_SEA_FX_HEIGHTMAPS_Y_3) +texture2D _Sea_FX_Heightmaps_Y_3; +float4 _Sea_FX_Heightmaps_Y_3_ST; +#endif + +#if defined(_SEA_FX_HEIGHTMAPS_XZ_0) +texture2D _Sea_FX_Heightmaps_XZ_0; +float4 _Sea_FX_Heightmaps_XZ_0_ST; +#endif +#if defined(_SEA_FX_HEIGHTMAPS_XZ_1) +texture2D _Sea_FX_Heightmaps_XZ_1; +float4 _Sea_FX_Heightmaps_XZ_1_ST; +#endif +#if defined(_SEA_FX_HEIGHTMAPS_XZ_2) +texture2D _Sea_FX_Heightmaps_XZ_2; +float4 _Sea_FX_Heightmaps_XZ_2_ST; +#endif +#if defined(_SEA_FX_HEIGHTMAPS_XZ_3) +texture2D _Sea_FX_Heightmaps_XZ_3; +float4 _Sea_FX_Heightmaps_XZ_3_ST; +#endif + +#if defined(_SEA_FX_VERTICAL_DERIVATIVES_0) +texture2D _Sea_FX_Vertical_Derivatives_0; +float4 _Sea_FX_Vertical_Derivatives_0_ST; +#endif +#if defined(_SEA_FX_HORIZONTAL_DERIVATIVES_0) +texture2D _Sea_FX_Horizontal_Derivatives_0; +float4 _Sea_FX_Horizontal_Derivatives_0_ST; +#endif +#if defined(_SEA_FX_VERTICAL_DERIVATIVES_1) +texture2D _Sea_FX_Vertical_Derivatives_1; +float4 _Sea_FX_Vertical_Derivatives_1_ST; +#endif +#if defined(_SEA_FX_HORIZONTAL_DERIVATIVES_1) +texture2D _Sea_FX_Horizontal_Derivatives_1; +float4 _Sea_FX_Horizontal_Derivatives_1_ST; +#endif +#if defined(_SEA_FX_VERTICAL_DERIVATIVES_2) +texture2D _Sea_FX_Vertical_Derivatives_2; +float4 _Sea_FX_Vertical_Derivatives_2_ST; +#endif +#if defined(_SEA_FX_HORIZONTAL_DERIVATIVES_2) +texture2D _Sea_FX_Horizontal_Derivatives_2; +float4 _Sea_FX_Horizontal_Derivatives_2_ST; +#endif +#if defined(_SEA_FX_VERTICAL_DERIVATIVES_3) +texture2D _Sea_FX_Vertical_Derivatives_3; +float4 _Sea_FX_Vertical_Derivatives_3_ST; +#endif +#if defined(_SEA_FX_HORIZONTAL_DERIVATIVES_3) +texture2D _Sea_FX_Horizontal_Derivatives_3; +float4 _Sea_FX_Horizontal_Derivatives_3_ST; +#endif + +#if defined(_SEA_FOAM) +float4 _Sea_Foam_Color; +float _Sea_Foam_Roughness; +float _Sea_Foam_Bias; +#endif + +#if defined(_SEA_SSS) +float4 _Sea_SSS_Color; +float _Sea_SSS_X_Amount; +float _Sea_SSS_Bias; +float _Sea_SSS_Factor; +float _Sea_SSS_Power; +float _Sea_SSS_LoV_Wrap; +#endif + +#if defined(_TESSELLATION) +float _Tessellation_Factor; +float _Tessellation_Frustum_Culling_Bias; +float _Tessellation_Falloff_Factor; +#endif // _TESSELLATION + + +#endif // __GLOBALS_INC |
