From 4c6803ad8e3513f8a06f575536437a8628fcdfc9 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Tue, 5 Nov 2019 08:15:59 +0930 Subject: [PATCH] Fix shader metallic parameter --- shaders/pbr-qt.frag | 1 + 1 file changed, 1 insertion(+) diff --git a/shaders/pbr-qt.frag b/shaders/pbr-qt.frag index 773b1291..401f7b56 100644 --- a/shaders/pbr-qt.frag +++ b/shaders/pbr-qt.frag @@ -361,6 +361,7 @@ void main() } roughness = min(0.99, roughness); + metalness = min(0.99, metalness); gl_FragColor = metalRoughFunction(vec4(color, alpha), metalness,