]> O.S.I.I.S - jp/vkvg.git/commitdiff
debug full screen quad, out uv in vertex shader was not set
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 11 May 2019 21:26:32 +0000 (23:26 +0200)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 11 May 2019 21:26:32 +0000 (23:26 +0200)
shaders/vkvg_main.vert

index a42a897e44b77347a24a40c7a23d9b3abaf95e36..95c95c9896969dc839a387d722c40402622ac9bf 100644 (file)
@@ -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]