FIx bad roughness value read from the deferred buffer

This commit is contained in:
samcake 2016-05-17 11:13:34 -07:00
parent 34e574c148
commit 8ec280535b

View file

@ -101,7 +101,7 @@ DeferredFragment unpackDeferredFragmentNoPosition(vec2 texcoord) {
// Unpack the normal from the map
frag.normal = normalize(frag.normalVal.xyz * 2.0 - vec3(1.0));
frag.roughness = 2.0 * frag.normalVal.a;
frag.roughness = frag.normalVal.a;
// Diffuse color and unpack the mode and the metallicness
frag.diffuse = frag.diffuseVal.xyz;