Added lighting to SSAO example. small changes and fixes

This commit is contained in:
saschawillems 2016-10-29 13:18:20 +02:00
parent 9212a9e3cb
commit 06369fc72e
11 changed files with 40 additions and 25 deletions

View file

@ -13,7 +13,7 @@ layout (location = 1) out vec4 outNormal;
layout (location = 2) out vec4 outAlbedo;
const float NEAR_PLANE = 0.1f; //todo: specialization const
const float FAR_PLANE = 50.0f; //todo: specialization const
const float FAR_PLANE = 64.0f; //todo: specialization const
float linearDepth(float depth)
{