mirror of
https://github.com/lubosz/overte.git
synced 2025-08-05 18:04:27 +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
|
// Unpack the normal from the map
|
||||||
frag.normal = normalize(frag.normalVal.xyz * 2.0 - vec3(1.0));
|
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
|
// Diffuse color and unpack the mode and the metallicness
|
||||||
frag.diffuse = frag.diffuseVal.xyz;
|
frag.diffuse = frag.diffuseVal.xyz;
|
||||||
|
|
Loading…
Reference in a new issue