From 19bdcec2b69aff8b75d5c9c6c4d0cb4d0d9ec5c3 Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 12 Feb 2025 16:10:26 -0800 Subject: fix normal bugs, add normal shadowing going to remove normal shadowing, it's not worth the complexity --- interpolators.cginc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'interpolators.cginc') diff --git a/interpolators.cginc b/interpolators.cginc index 56b5f60..1b3abc5 100644 --- a/interpolators.cginc +++ b/interpolators.cginc @@ -4,24 +4,24 @@ #include "AutoLight.cginc" struct appdata { - float4 vertex : POSITION; - float2 uv : TEXCOORD0; - float2 uv1 : TEXCOORD1; - float3 normal : NORMAL; + float4 vertex : POSITION; + float4 uv01 : TEXCOORD0; // uv channels 0:1 + float3 normal : NORMAL; float4 tangent : TANGENT; UNITY_VERTEX_INPUT_INSTANCE_ID }; struct v2f { - float4 pos : SV_POSITION; - float2 uv : TEXCOORD0; - float3 worldPos : TEXCOORD1; - float3 normal : TEXCOORD2; - float3 tangent : TEXCOORD3; - float3 bitangent : TEXCOORD4; - float4 eyeVec : TEXCOORD5; // eyeVec.xyz | fogCoord + float4 pos : SV_POSITION; + float4 uv01 : TEXCOORD0; + float3 worldPos : TEXCOORD1; + float3 normal : TEXCOORD2; + float3 tangent : TEXCOORD3; + float3 binormal : TEXCOORD4; + float4 eyeVec : TEXCOORD5; // eyeVec.xyz | fogCoord UNITY_LIGHTING_COORDS(6,7) + float3 lightDirTS : TEXCOORD8; UNITY_VERTEX_INPUT_INSTANCE_ID UNITY_VERTEX_OUTPUT_STEREO -- cgit v1.2.3