From 9d944f26d359e4bc1ffd8e44350b0df9f0935b18 Mon Sep 17 00:00:00 2001 From: pryazha Date: Sun, 15 Jun 2025 16:11:31 +0500 Subject: something --- advanced_lighting/9.ssao/gbuffer.frag | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 advanced_lighting/9.ssao/gbuffer.frag (limited to 'advanced_lighting/9.ssao/gbuffer.frag') 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); +} -- cgit v1.2.3-70-g09d2