Unity shader算法收集之缩放uv

缩放uv算法代码如下:

1 half2 ScaleUVsByCenter(half2 uv, float scale)
2 {
3     float2 center = float2(0.5, 0.5);
4     return (uv - center) / scale + center;
5 }

转载请注明出处:https://www.cnblogs.com/jietian331/p/17122079.html

posted @ 2023-02-15 11:09  孤独の巡礼  阅读(188)  评论(0编辑  收藏  举报