mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphicsdriver/metal: Update comments
This commit is contained in:
parent
7068eb9284
commit
c43ba6e17d
@ -83,7 +83,8 @@ vertex VertexOut VertexShader(
|
||||
|
||||
VertexIn in = vertices[vid];
|
||||
|
||||
// TODO: Is this a correct fix?
|
||||
// In Metal, the NDC's Y direction (upward) and the framebuffer's Y direction (downward) don't match.
|
||||
// Then, the Y value must be inverted.
|
||||
float4 pos = projectionMatrix * float4(in.position, 0, 1);
|
||||
pos.y = -pos.y;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user