mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
Merge pull request #7910 from samcake/blue
Fix bad roughness value read from the deferred buffer
This commit is contained in:
commit
8e3b31a5e5
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