summaryrefslogtreecommitdiff
path: root/src/apps/qcam/assets/shader/identity.vert
blob: 907e8741fae73ad3091c9b131b193315a253cc5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright (C) 2020, Linaro
 *
 * identity.vert - Identity vertex shader for pixel format conversion
 */

attribute vec4 vertexIn;
attribute vec2 textureIn;
varying vec2 textureOut;

uniform mat4 proj_matrix;
uniform float stride_factor;

void main(void)
{
	gl_Position = proj_matrix * vertexIn;
	textureOut = vec2(textureIn.x * stride_factor, textureIn.y);
}