Added shaders for PBR IBL BRDF LUT generation

This commit is contained in:
saschawillems 2017-04-18 21:26:32 +02:00
parent 44bcac9be3
commit fae589cf65
4 changed files with 99 additions and 0 deletions

View file

@ -0,0 +1,9 @@
#version 450
layout (location = 0) out vec2 outUV;
void main()
{
outUV = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
gl_Position = vec4(outUV * 2.0f - 1.0f, 0.0f, 1.0f);
}