From 20c32dcb055058b770062b7e9dd07f79d33a8caa Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 11 Feb 2025 16:54:10 -0800 Subject: Add code Implement basic diffuse and specular BRDF based heavily on silent's filamented shader. --- globals.cginc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 globals.cginc (limited to 'globals.cginc') diff --git a/globals.cginc b/globals.cginc new file mode 100644 index 0000000..5fc9a95 --- /dev/null +++ b/globals.cginc @@ -0,0 +1,24 @@ +#ifndef __GLOBALS_INC +#define __GLOBALS_INC + +sampler2D _MainTex; +float4 _MainTex_ST; +fixed4 _Color; + +sampler2D _BumpMap; +float _BumpScale; + +sampler2D _OcclusionMap; +float _OcclusionStrength; + +float _Clip; +int _Mode; +float _Smoothness; +float _Metallic; +float _Spherical_Harmonics; + +float _reflectance; +float _specularAntiAliasingVariance; +float _specularAntiAliasingThreshold; + +#endif // __GLOBALS_INC -- cgit v1.2.3