diff options
| author | yum <yum.food.vr@gmail.com> | 2024-07-13 01:49:03 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-07-13 01:49:21 -0700 |
| commit | bf4457b96cd46ed2d3d61bde2eb4d58d3114730b (patch) | |
| tree | 00c2e9c18f15dc2decd54666e96254e9176102dd /tooner_outline_pass.cginc | |
| parent | d0032ecf7d258ac52ef572e26f64e18190bf9215 (diff) | |
Integrate metallic eye shader
Diffstat (limited to 'tooner_outline_pass.cginc')
| -rw-r--r-- | tooner_outline_pass.cginc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tooner_outline_pass.cginc b/tooner_outline_pass.cginc index 9050811..c7b6ded 100644 --- a/tooner_outline_pass.cginc +++ b/tooner_outline_pass.cginc @@ -25,6 +25,17 @@ struct tess_factors { v2f vert(appdata v) { +#if defined(_GIMMICK_SHEAR_LOCATION) + if (_Gimmick_Shear_Location_Enable_Dynamic) { + v.vertex = mul(float4x4( + _Gimmick_Shear_Location_Strength.x, 0, 0, 0, + 0, _Gimmick_Shear_Location_Strength.y, 0, 0, + 0, 0, _Gimmick_Shear_Location_Strength.z, 0, + 0, 0, 0, _Gimmick_Shear_Location_Strength.w), + v.vertex); + } +#endif + float4 objPos = v.vertex; float4 clipPos = UnityObjectToClipPos(v.vertex); float3 clipNormal = mul((float3x3) UNITY_MATRIX_MVP, v.normal); |
