~vladh/peony

peony/src_shaders/unknown.frag -rw-r--r-- 600 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
18
19
20
21
22
23
24
25
26
27
28
29
/*
  Peony Game Engine
  Copyright (C) 2020 Vlad-Stefan Harbuz <vlad@vladh.net>
  All rights reserved.
*/

out vec4 frag_color;

in BLOCK {
  vec3 normal;
} fs_in;

// NOTE: Normally, we might have different kind of outputs.
//
// Deferred rendering
// (vec3 g_position, vec3 g_normal, vec4 g_albedo, vec4 g_pbr).
//
// Forward rendering
// (vec4 frag_color)
//
// Forward rendering with HDR
// (vec4 l_color, vec4 l_bright_color)
//
// We're not gonna care about any of that!
// Just setting our one output to pink will set EVERYTHING pink.

void main() {
  frag_color = vec4(1.0, 0.0, 1.0, 1.0);
}