| 1 |
// Copyright (c) 2017-2026 The Khronos Group Inc. |
| 2 |
// |
| 3 |
// SPDX-License-Identifier: Apache-2.0 |
| 4 |
#version 400 |
| 5 |
#extension GL_ARB_separate_shader_objects : enable |
| 6 |
#extension GL_ARB_shading_language_420pack : enable |
| 7 |
|
| 8 |
#pragma vertex |
| 9 |
|
| 10 |
layout (std140, push_constant) uniform buf |
| 11 |
{ |
| 12 |
mat4 mvp; |
| 13 |
} ubuf; |
| 14 |
|
| 15 |
layout (location = 0) in vec3 Position; |
| 16 |
layout (location = 1) in vec3 Color; |
| 17 |
|
| 18 |
layout (location = 0) out vec4 oColor; |
| 19 |
out gl_PerVertex |
| 20 |
{ |
| 21 |
vec4 gl_Position; |
| 22 |
}; |
| 23 |
|
| 24 |
void main() |
| 25 |
{ |
| 26 |
oColor.rgb = Color.rgb; |
| 27 |
oColor.a = 1.0; |
| 28 |
gl_Position = ubuf.mvp * vec4(Position, 1); |
| 29 |
} |