Skip to content

Commit

Permalink
Add fix for vflipped UDIMs ARNOLD-13463
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienHerubel committed Dec 20, 2023
1 parent 4b03b39 commit 7435ca0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libraries/stdlib/genosl/lib/mx_transform_uv_vflip.osl
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
vector2 mx_transform_uv(vector2 texcoord)
{
return vector2(texcoord.x, 1.0 - texcoord.y);
float vlookup = 1.0 - texcoord.y;
float vfloor = floor(texcoord.y);
float vfrac = texcoord.y - vfloor;
vlookup = vfloor + (1.0 - vfrac);
return vector2(texcoord.x, vlookup);
}

0 comments on commit 7435ca0

Please sign in to comment.