summaryrefslogtreecommitdiffstatsci
path: root/shaders/vkvg_main.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/vkvg_main.vert')
-rw-r--r--shaders/vkvg_main.vert8
1 files changed, 2 insertions, 6 deletions
diff --git a/shaders/vkvg_main.vert b/shaders/vkvg_main.vert
index 7466fee..e214d14 100644
--- a/shaders/vkvg_main.vert
+++ b/shaders/vkvg_main.vert
@@ -26,9 +26,8 @@
layout (location = 0) in vec2 inPos;
layout (location = 1) in vec4 inColor;
-layout (location = 2) in vec3 inUV;
+//layout (location = 2) in vec3 inUV;
-=======
layout (location = 0) out vec4 outSrc;
layout(push_constant) uniform PushConsts {
@@ -51,16 +50,13 @@ layout(push_constant) uniform PushConsts {
void main()
{
- outSrc = pc.srcType == SOLID ? inColor : pc.source;
+ outSrc = (pc.fullScreenQuad_srcType & SRCTYPE_MASK) == SOLID ? inColor : pc.source;
if ((pc.fullScreenQuad_srcType & FULLSCREEN_BIT)==FULLSCREEN_BIT) {
gl_Position = vec4(inPos, 0.0f, 1.0f);
- outUV = vec3(0,0,-1);
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]