summaryrefslogtreecommitdiff
path: root/src/apps/qcam/assets/shader/identity.vert
blob: 12c41377cfe7140c4c55dfdcf0e1eebbc75faf96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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 float stride_factor;

void main(void)
{
	gl_Position = vertexIn;
	textureOut = vec2(textureIn.x * stride_factor, textureIn.y);
}
round" class="feather feather-crop"><path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path></svg>