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. --- interpolators.cginc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 interpolators.cginc (limited to 'interpolators.cginc') diff --git a/interpolators.cginc b/interpolators.cginc new file mode 100644 index 0000000..f3c18aa --- /dev/null +++ b/interpolators.cginc @@ -0,0 +1,23 @@ +#ifndef __INTERPOLATORS_INC +#define __INTERPOLATORS_INC + +#include "AutoLight.cginc" + +struct appdata { + float4 vertex : POSITION; + float2 uv : TEXCOORD0; + float3 normal : NORMAL; + float4 tangent : TANGENT; +}; + +struct v2f { + float2 uv : TEXCOORD0; + float4 pos : SV_POSITION; + float3 worldPos : TEXCOORD1; + float3 normal : TEXCOORD2; + float3 tangent : TEXCOORD3; + float3 bitangent : TEXCOORD4; + SHADOW_COORDS(5) +}; + +#endif // __INTERPOLATORS_INC -- cgit v1.2.3