diff options
| author | yum <yum.food.vr@gmail.com> | 2026-01-20 22:15:09 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-01-20 22:15:09 -0800 |
| commit | a54b415ab89302cf1f74f78360595ec0eff8fc7b (patch) | |
| tree | 678cd3c8076c0c8995d6e1033f401738a22c1bea /interpolators.cginc | |
| parent | d24a5d839bad7ae0a9a6525f7c4d30fa0877e073 (diff) | |
Push eyeVec into fragment
Diffstat (limited to 'interpolators.cginc')
| -rw-r--r-- | interpolators.cginc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/interpolators.cginc b/interpolators.cginc index 9449de7..bb08c4e 100644 --- a/interpolators.cginc +++ b/interpolators.cginc @@ -27,16 +27,15 @@ struct v2f { float3 worldPos : TEXCOORD3;
float3 normal : TEXCOORD4;
float3 tangent : TEXCOORD5;
- float4 eyeVec : TEXCOORD6; // eyeVec.xyz | fogCoord
- float4 vertexLight : TEXCOORD7; // vertexLight.xyz | furLayer
- UNITY_LIGHTING_COORDS(8,9)
+ float4 vertexLight : TEXCOORD6; // vertexLight.xyz | furLayer
+ UNITY_LIGHTING_COORDS(7,8)
#if defined(V2F_ORIG_POS)
- float3 orig_pos : TEXCOORD10;
+ float3 orig_pos : TEXCOORD9;
#endif
#if defined(V2F_COLOR)
- float4 color : TEXCOORD11;
+ float4 color : TEXCOORD10;
#endif
UNITY_VERTEX_INPUT_INSTANCE_ID
@@ -46,6 +45,8 @@ struct v2f { // Fragment shader common data (fragment 2 fragment)
struct f2f {
float3 binormal;
+ float3 eyeVec;
+ float3 viewDir;
};
#endif // __INTERPOLATORS_INC
|
