diff options
| author | yum <yum.food.vr@gmail.com> | 2025-02-12 16:10:26 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-02-12 16:10:26 -0800 |
| commit | 19bdcec2b69aff8b75d5c9c6c4d0cb4d0d9ec5c3 (patch) | |
| tree | 0bbc695c04af083c0c2408d6dbdef35ae386b3f8 /interpolators.cginc | |
| parent | caf02458737f93b20978f41613ad5b56e074e154 (diff) | |
fix normal bugs, add normal shadowing
going to remove normal shadowing, it's not worth the complexity
Diffstat (limited to 'interpolators.cginc')
| -rw-r--r-- | interpolators.cginc | 22 |
1 files changed, 11 insertions, 11 deletions
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
|
