mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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];
|
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);
|
float4 pos = projectionMatrix * float4(in.position, 0, 1);
|
||||||
pos.y = -pos.y;
|
pos.y = -pos.y;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user