summaryrefslogtreecommitdiff
path: root/advanced_lighting/9.ssao/gbuffer.frag
diff options
context:
space:
mode:
Diffstat (limited to 'advanced_lighting/9.ssao/gbuffer.frag')
-rw-r--r--advanced_lighting/9.ssao/gbuffer.frag17
1 files changed, 17 insertions, 0 deletions
diff --git a/advanced_lighting/9.ssao/gbuffer.frag b/advanced_lighting/9.ssao/gbuffer.frag
new file mode 100644
index 0000000..7755107
--- /dev/null
+++ b/advanced_lighting/9.ssao/gbuffer.frag
@@ -0,0 +1,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);
+}