libs/vkd3d: Use negative viewport height to flip along y-axis.

Requires VK_KHR_maintenance1.
This commit is contained in:
Józef Kucia
2017-06-21 22:00:19 +02:00
parent d515e3d047
commit 4e5fcb5141
5 changed files with 18 additions and 23 deletions

View File

@@ -35,6 +35,4 @@ void main()
colour_out.xyz = diffuse_in.xyz * att;
colour_out.w = 1.0;
gl_Position.y = -gl_Position.y;
}

View File

@@ -8,7 +8,6 @@ layout(location = 0) out vec4 colour_out;
void main(void)
{
gl_Position.xzw = position_in.xzw;
gl_Position.y = -position_in.y;
gl_Position = position_in;
colour_out = colour_in;
}