From 6ac3da1b0bd363d70c2f6e4b7b921f2f929dedac Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 12 Oct 2025 15:00:47 -0700 Subject: add uv scroll, aniso16, and finish tubes --- 3ner.cginc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '3ner.cginc') 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); -- cgit v1.2.3