summaryrefslogtreecommitdiff
path: root/advanced_lighting/9.ssao/gbuffer.frag
blob: fd90740d0b7e87e7aaca84687e6c598bf59ccc00 (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 color;

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