summaryrefslogtreecommitdiffstats
path: root/pbr.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2026-02-24 19:09:23 -0800
committeryum <yum.food.vr@gmail.com>2026-02-24 19:09:23 -0800
commit80d511162ca90e29fd26c9a5893cde7aa9c23332 (patch)
tree12c7bd37084b7ded5eb2472ca2b5bcc6d8e8d69b /pbr.cginc
parent610607592438452e181eba98f05d58f838975266 (diff)
Add outline pass
Diffstat (limited to 'pbr.cginc')
-rwxr-xr-xpbr.cginc4
1 files changed, 4 insertions, 0 deletions
diff --git a/pbr.cginc b/pbr.cginc
index 4389476..c89a97c 100755
--- a/pbr.cginc
+++ b/pbr.cginc
@@ -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));