From d65ddd07a43d5ffdcf2ddf90d6f86626cf9b92d8 Mon Sep 17 00:00:00 2001 From: pryazha Date: Tue, 18 Mar 2025 11:31:31 +0500 Subject: hdr --- advanced_lighting/6.hdr/shaders/normals_debug.vert | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 advanced_lighting/6.hdr/shaders/normals_debug.vert (limited to 'advanced_lighting/6.hdr/shaders/normals_debug.vert') diff --git a/advanced_lighting/6.hdr/shaders/normals_debug.vert b/advanced_lighting/6.hdr/shaders/normals_debug.vert new file mode 100644 index 0000000..2d3a4b5 --- /dev/null +++ b/advanced_lighting/6.hdr/shaders/normals_debug.vert @@ -0,0 +1,16 @@ +#version 330 core +layout(location = 0) in vec3 apos; +layout(location = 1) in vec3 anormal; + +out VS_OUT { + vec4 normal; +} vs_out; + +uniform mat4 view; +uniform mat4 model; + +void main(void) +{ + vs_out.normal = view*model*vec4(normalize(anormal), 0.0); + gl_Position = view*model*vec4(apos, 1.0); +} -- cgit v1.2.3