diff options
| author | yum <yum.food.vr@gmail.com> | 2024-07-20 01:46:51 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2024-07-20 01:46:51 -0700 |
| commit | 6c1e463a846292a55cf10db772741cea657f298f (patch) | |
| tree | f04f1171ba478adf570094cdb0f16cd2dd393406 /tooner_outline_pass.cginc | |
| parent | 0592c85cd172369625e084be6b037f8c122cbf16 (diff) | |
Add second mask to matcaps
Useful for PBR overlay.
Diffstat (limited to 'tooner_outline_pass.cginc')
| -rw-r--r-- | tooner_outline_pass.cginc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tooner_outline_pass.cginc b/tooner_outline_pass.cginc index d225dc9..f2ea2b2 100644 --- a/tooner_outline_pass.cginc +++ b/tooner_outline_pass.cginc @@ -71,7 +71,7 @@ v2f vert(appdata v) #endif v2f o; - o.worldPos = mul(unity_ObjectToWorld, float4(objPos.xyz, 1)); + o.worldPos = mul(unity_ObjectToWorld, objPos); o.objPos = objPos; o.pos = UnityObjectToClipPos(objPos); o.normal = UnityObjectToWorldNormal(v.normal); |
