blob: d33cc47ed04b018f9d429575aa2a1da66dcf7f79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright (C) 2018 Tomasz Kramkowski <tk@the-tk.com>
// SPDX-License-Identifier: MIT
#version 330 core
layout (location = 0) in vec3 pos;
layout (location = 1) in vec3 normal;
layout (location = 2) in vec2 uv;
out vec3 vcolor;
uniform mat4 model;
uniform mat4 view;
uniform mat4 proj;
void main()
{
gl_Position = proj * view * model * vec4(pos, 1.0);
vcolor = normal;
}
|