summaryrefslogtreecommitdiff
path: root/advanced_lighting/9.ssao/gbuffer.frag
blob: 775510788e944ad7a2e33a2e5bf5e75f00973fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#version 330 core

in vert_t {
    vec3 position;
    vec3 normal;
} vert;

layout(location = 0) out vec3 position;
layout(location = 1) out vec3 normal;
layout(location = 2) out vec3 albedo;

void main()
{
    position = vert.position;
    normal = normalize(vert.normal);
    albedo.rgb = vec3(0.95);
}