漏提交
This commit is contained in:
parent
aed0083122
commit
bdda16e04b
8
src/renderer/shader/aorii_util.slang
Normal file
8
src/renderer/shader/aorii_util.slang
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user