~vladh/peony

peony/src_shaders/axes.frag -rw-r--r-- 221 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
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/

in BLOCK {
  vec3 normal;
} fs_in;

out vec4 frag_color;

void main() {
  frag_color = vec4(fs_in.normal, 1.0);
}