From 3dba69983e2712f3bc406908cfd985a0a38cb6a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Sat, 11 May 2019 23:26:32 +0200 Subject: [PATCH] debug full screen quad, out uv in vertex shader was not set --- shaders/vkvg_main.vert | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shaders/vkvg_main.vert b/shaders/vkvg_main.vert index a42a897..95c95c9 100644 --- a/shaders/vkvg_main.vert +++ b/shaders/vkvg_main.vert @@ -55,17 +55,19 @@ layout(push_constant) uniform PushConsts { void main() { - outUV = inUV; outPatType = pc.srcType; outSrc = pc.source; outMat = pc.matInv; if (pc.fullScreenQuad != 0) { gl_Position = vec4(vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2) * 2.0f + -1.0f, 0.0f, 1.0f); + outUV = vec3(0,0,-1); //gl_Position = vec4(vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2) -1.0f, 0.0f, 1.0f); return; } + outUV = inUV; + vec2 p = vec2( pc.mat[0][0] * inPos.x + pc.mat[1][0] * inPos.y + pc.mat[2][0], pc.mat[0][1] * inPos.x + pc.mat[1][1] * inPos.y + pc.mat[2][1] -- 2.47.3