summaryrefslogtreecommitdiffstats
path: root/3ner.cginc
diff options
context:
space:
mode:
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);