summaryrefslogtreecommitdiffstats
path: root/face_me.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-03-15 20:02:27 -0700
committeryum <yum.food.vr@gmail.com>2025-03-15 20:02:27 -0700
commit0bdd12598e22932d14fb71b16f9ad840d544d12d (patch)
treebb1f20a88e04836463e06a8b5e0c70adfa5fd36b /face_me.cginc
parentdf77089d90024f229e4dd27a25a9b97645b614d1 (diff)
begin sketching out harnack tracer
Diffstat (limited to 'face_me.cginc')
-rw-r--r--face_me.cginc2
1 files changed, 2 insertions, 0 deletions
diff --git a/face_me.cginc b/face_me.cginc
index b5622b5..e048dfd 100644
--- a/face_me.cginc
+++ b/face_me.cginc
@@ -4,6 +4,7 @@
#include "cnlohr.cginc"
#include "interpolators.cginc"
+#if defined(_FACE_ME)
// Rotate the object's position and normal so that it always faces the camera.
void face_me(inout appdata v) {
[branch]
@@ -59,6 +60,7 @@ void face_me(inout appdata v) {
v.tangent.xyz = normalize(mul(unity_WorldToObject, world_tangent));
}
}
+#endif // _FACE_ME
#endif // __FACE_ME_INC