diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2022-01-15 16:02:48 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2022-01-15 16:02:48 +0100 |
| commit | 07e316316bc7a7529c2d9b3503771eab34775bc3 (patch) | |
| tree | 5881f36c214012206ff0f75a460cac3579c8181d /shaders/vkvg_main.vert | |
| parent | e5b3a3e3eda98688b731ee5e59da6725315b220c (diff) | |
test with solid color onlysolidColorOnlyShader
Diffstat (limited to 'shaders/vkvg_main.vert')
| -rw-r--r-- | shaders/vkvg_main.vert | 8 |
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] |