~vladh/peony

peony/src_shaders/debugdraw.vert -rw-r--r-- 319 bytes
7fc9922bVlad-Stefan Harbuz changes shaders namespace into class a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/

layout (location = 0) in vec3 position;
layout (location = 1) in vec4 color;

out BLOCK {
  vec4 color;
} vs_out;

void main() {
  gl_Position = projection * view * vec4(position, 1.0);
  vs_out.color = color;
}