mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 22:33:04 +02:00
FIx bad roughness value read from the deferred buffer
This commit is contained in:
parent
34e574c148
commit
8ec280535b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue