diff options
| author | yum <yum.food.vr@gmail.com> | 2025-10-12 15:00:47 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-10-12 15:00:47 -0700 |
| commit | 6ac3da1b0bd363d70c2f6e4b7b921f2f929dedac (patch) | |
| tree | cc09ebbdd7bd101bccd2f9d594279f5f66370c63 /3ner.cginc | |
| parent | d2090f73f3e4f08cdbd3c3b82eb7f3ba9f459dd0 (diff) | |
add uv scroll, aniso16, and finish tubes
Diffstat (limited to '3ner.cginc')
| -rw-r--r-- | 3ner.cginc | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |
