Visually upgraded deferred rendering example with moving lights, multiple meshes and normal mapping

This commit is contained in:
saschawillems 2016-07-03 21:32:35 +02:00
parent f06ffae58e
commit 18013c44e0
12 changed files with 247 additions and 196 deletions

View file

@ -17,6 +17,7 @@ void main()
components[0] = texture(samplerPosition, inUV.st).rgb;
components[1] = texture(samplerNormal, inUV.st).rgb;
components[2] = texture(samplerAlbedo, inUV.st).rgb;
// Uncomment to display specular component
//components[2] = vec3(texture(samplerAlbedo, inUV.st).a);
// Select component depending on z coordinate of quad