diff options
| author | yum <yum.food.vr@gmail.com> | 2026-02-24 19:09:23 -0800 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2026-02-24 19:09:23 -0800 |
| commit | 80d511162ca90e29fd26c9a5893cde7aa9c23332 (patch) | |
| tree | 12c7bd37084b7ded5eb2472ca2b5bcc6d8e8d69b /pbr.cginc | |
| parent | 610607592438452e181eba98f05d58f838975266 (diff) | |
Add outline pass
Diffstat (limited to 'pbr.cginc')
| -rwxr-xr-x | pbr.cginc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -196,9 +196,13 @@ Pbr getPbr(v2f i) { #if defined(_IMPOSTORS_DEPTH) pbr.objPos = imp.objPos; #endif +#else // !_IMPOSTORS +#if defined(OUTLINES_PASS) && defined(_OUTLINES) + pbr.albedo = _Outlines_Color; #else pbr.albedo = _MainTex.Sample(aniso4_trilinear_repeat_s, uv_parallax * _MainTex_ST.xy + _MainTex_ST.zw); pbr.albedo *= _Color; +#endif apply_marble(i.worldPos, pbr.albedo.xyz); float3 normal_tangent = UnpackNormal(_BumpMap.Sample(aniso4_trilinear_repeat_s, uv_parallax * _BumpMap_ST.xy)); |
