diff options
Diffstat (limited to 'src/apps/qcam/assets/shader/identity.vert')
-rw-r--r-- | src/apps/qcam/assets/shader/identity.vert | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/apps/qcam/assets/shader/identity.vert b/src/apps/qcam/assets/shader/identity.vert new file mode 100644 index 00000000..12c41377 --- /dev/null +++ b/src/apps/qcam/assets/shader/identity.vert @@ -0,0 +1,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); +} |