diff options
| author | yum <yum.food.vr@gmail.com> | 2025-10-28 17:15:36 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2025-10-28 17:19:39 -0700 |
| commit | 6a10c50359aa62405118a78c69dccef0394f8591 (patch) | |
| tree | 59c7c55ec3d37780319bc066fd473e1b24b632ff /3ner.cginc | |
| parent | fd370eab7e4959895763514526efc878e53d4886 (diff) | |
add machinery for multiple uv channels
Diffstat (limited to '3ner.cginc')
| -rw-r--r-- | 3ner.cginc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -30,7 +30,10 @@ v2f vert(appdata v) { #if defined(_TESSELLATION) o.tpos = v.vertex; #endif - o.uv0 = v.uv0; + o.uv01.xy = v.uv0; + o.uv01.zw = v.uv1; + o.uv23.xy = v.uv2; + o.uv23.zw = v.uv3; o.objPos = v.vertex; #if defined(_VERTEX_DEFORMATION_FRAGMENT_NORMALS) || defined(_VERTEX_DEFORMATION_TESSELLATION) o.objPos_orig = v.vertex; @@ -160,7 +163,8 @@ v2f domain( patch[1].fieldName * baryc.y + \ patch[2].fieldName * baryc.z - o.uv0 = DOMAIN_INTERP(uv0); + o.uv01 = DOMAIN_INTERP(uv01); + o.uv23 = DOMAIN_INTERP(uv23); #if defined(_TESSELLATION) o.objPos = DOMAIN_INTERP(tpos); #else |
