diff options
| author | yum <yum.food.vr@gmail.com> | 2025-02-12 01:24:49 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-02-12 01:24:49 -0800 |
| commit | caf02458737f93b20978f41613ad5b56e074e154 (patch) | |
| tree | b7b3c0ab468d858d71f4fa96f2b420b7ad5ab98a /interpolators.cginc | |
| parent | 498ffebe9524871e9442e58eb0c3760a5463ffbc (diff) | |
Add a bunch of features
* stereo instancing
* outlines
* shadows (casting & receiving)
* unity fog
* blend modes
* wrapped lighting (generalized half lambertian)
* diffuse & specular have independent knobs
Also:
* fix bug where shadow caster wouldn't clip in cutout mode.
* remove a bunch of unused params
* use ifex to minimize size of locked materials (more to be done
probably)
* improve formatting
Diffstat (limited to 'interpolators.cginc')
| -rw-r--r-- | interpolators.cginc | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/interpolators.cginc b/interpolators.cginc index f3c18aa..56b5f60 100644 --- a/interpolators.cginc +++ b/interpolators.cginc @@ -4,20 +4,27 @@ #include "AutoLight.cginc"
struct appdata {
- float4 vertex : POSITION;
- float2 uv : TEXCOORD0;
- float3 normal : NORMAL;
- float4 tangent : TANGENT;
+ float4 vertex : POSITION;
+ float2 uv : TEXCOORD0;
+ float2 uv1 : TEXCOORD1;
+ float3 normal : NORMAL;
+ float4 tangent : TANGENT;
+
+ UNITY_VERTEX_INPUT_INSTANCE_ID
};
struct v2f {
- float2 uv : TEXCOORD0;
- float4 pos : SV_POSITION;
- float3 worldPos : TEXCOORD1;
- float3 normal : TEXCOORD2;
- float3 tangent : TEXCOORD3;
+ float4 pos : SV_POSITION;
+ float2 uv : TEXCOORD0;
+ float3 worldPos : TEXCOORD1;
+ float3 normal : TEXCOORD2;
+ float3 tangent : TEXCOORD3;
float3 bitangent : TEXCOORD4;
- SHADOW_COORDS(5)
+ float4 eyeVec : TEXCOORD5; // eyeVec.xyz | fogCoord
+ UNITY_LIGHTING_COORDS(6,7)
+
+ UNITY_VERTEX_INPUT_INSTANCE_ID
+ UNITY_VERTEX_OUTPUT_STEREO
};
#endif // __INTERPOLATORS_INC
|
