You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
int[]vertexTriangles;// index buffer of meshvarrightEdge=newint3(0,1,4);// index of vertex on the right of uv rectanglevartopEdge=newint3(1,3,4);// index of vertex on the top of uv rectanglevarrightTop=newint3x2(newint3(0,1,4),newint3(1,3,4));foreach(intindexinvertexTriangles){bool3x2checkRightTop=index%6==rightTop;bool2isRightTop=math.any(checkRightTop);// check that vertexIndex is which corner of UV space// isRightTop.x is left or right// isRightTop.y is bottom or topvarv=math.select(rightTopValue,leftBottomValue,isRightTop);// select leftTop/rightTop/leftBottom/rightBottom}
The text was updated successfully, but these errors were encountered:
Sample use case
The text was updated successfully, but these errors were encountered: