blob: 626582adb02a85bf4d133b7ecda8c6fe2a115fda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#version 440
layout(location = 0) in vec3 attr_pos;
layout(location = 1) in vec2 attr_uv;
layout(location = 0) out vec2 uv_coord;
#if QSHADER_VIEW_COUNT >= 2
layout(location = 1) flat out uint v_viewIndex;
#endif
void main()
{
uv_coord = attr_uv;
gl_Position = vec4(attr_pos, 1.0);
#if QSHADER_VIEW_COUNT >= 2
v_viewIndex = gl_ViewIndex;
#endif
}
|