Template PBR lighting tut with folder re-structure to fit PBR tuts.

This commit is contained in:
Joey de Vries
2016-12-12 21:10:58 +01:00
parent b2657d7e1c
commit 0a46f53608
12 changed files with 1343 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
// fragment shader
#version 330 core
out vec4 FragColor;
in vec2 TexCoords;
uniform sampler2D fboAttachment;
void main()
{
FragColor = texture(fboAttachment, TexCoords);
}

View File

@@ -0,0 +1,13 @@
// vertex shader
#version 330 core
layout (location = 0) in vec2 position;
layout (location = 1) in vec2 texCoords;
out vec2 TexCoords;
void main()
{
gl_Position = vec4(position, 0.0f, 1.0f);
TexCoords = texCoords;
}