漏提交

This commit is contained in:
Nanako 2024-11-22 10:35:41 +08:00
parent aed0083122
commit bdda16e04b

View File

@ -0,0 +1,8 @@
// 将uv坐标系移动到[-1, -1] ~ [1, 1]
float2 uv_to_ndc(float2 uv) {
#ifdef UV_FLIP
uv.y = 1.0 - uv.y;
#endif
return uv * 2.0 - 1.0;
}