Spaces:
Paused
Paused
File size: 493 Bytes
d49f7bc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
// Copyright (c) Meta Platforms, Inc. and affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#version 330 core
uniform mat4 model;
uniform mat4 view;
uniform mat4 proj;
layout(location = 0) in vec3 pos;
layout(location = 1) in vec3 color;
flat out int vertex_id;
out vec3 ourColor;
void main(){
gl_Position = proj * view * model * vec4(pos, 1);
vertex_id = gl_VertexID;
ourColor = color;
}
|