Skip to content

Commit

Permalink
Fix gbuffer pack
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Jun 5, 2018
1 parent 178ffd3 commit 47d2f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/arm/UINodes.hx
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ class UINodes extends iron.Trait {
frag.write('n /= (abs(n.x) + abs(n.y) + abs(n.z));');
frag.write('n.xy = n.z >= 0.0 ? n.xy : octahedronWrap(n.xy);');
frag.write('fragColor[0] = vec4(n.xy, packFloat(metallic, roughness), 1.0 - gl_FragCoord.z);');
frag.write('fragColor[1] = vec4(basecol.rgb, packFloat2(occlusion, specular));');
frag.write('fragColor[1] = vec4(basecol.rgb, packFloat2(occlusion, 1.0));'); // occ/spec
}

frag.write('vec2 posa = (wvpposition.xy / wvpposition.w) * 0.5 + 0.5;');
Expand Down

0 comments on commit 47d2f11

Please sign in to comment.