summaryrefslogtreecommitdiffstats
path: root/3ner.cginc
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2025-10-12 15:00:47 -0700
committeryum <yum.food.vr@gmail.com>2025-10-12 15:00:47 -0700
commit6ac3da1b0bd363d70c2f6e4b7b921f2f929dedac (patch)
treecc09ebbdd7bd101bccd2f9d594279f5f66370c63 /3ner.cginc
parentd2090f73f3e4f08cdbd3c3b82eb7f3ba9f459dd0 (diff)
add uv scroll, aniso16, and finish tubes
Diffstat (limited to '3ner.cginc')
-rw-r--r--3ner.cginc7
1 files changed, 5 insertions, 2 deletions
diff --git a/3ner.cginc b/3ner.cginc
index a1ab224..0536fb5 100644
--- a/3ner.cginc
+++ b/3ner.cginc
@@ -27,7 +27,7 @@ v2f vert(appdata v) {
#endif
o.uv0 = v.uv0;
o.objPos = v.vertex;
-#if defined(_CUSTOM31_FRAGMENT_NORMALS)
+#if defined(_CUSTOM31_FRAGMENT_NORMALS) || defined(_CUSTOM31_TESSELLATION)
o.objPos_orig = v.vertex;
#endif
@@ -155,8 +155,11 @@ v2f domain(
#else
o.objPos = DOMAIN_INTERP(objPos);
#endif
-#if defined(_CUSTOM31_FRAGMENT_NORMALS)
+
+#if defined(_CUSTOM31_FRAGMENT_NORMALS) || defined(_CUSTOM31_TESSELLATION)
o.objPos_orig = DOMAIN_INTERP(objPos_orig);
+ o.objPos = o.objPos_orig;
+ deform(o.objPos);
#endif
o.normal = DOMAIN_INTERP(normal);
o.tangent = DOMAIN_INTERP(tangent);