Fix shader metallic parameter

master
Jeremy Hu 2019-11-05 08:15:59 +09:30
parent f351cc28e3
commit 4c6803ad8e
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@ void main()
} }
roughness = min(0.99, roughness); roughness = min(0.99, roughness);
metalness = min(0.99, metalness);
gl_FragColor = metalRoughFunction(vec4(color, alpha), gl_FragColor = metalRoughFunction(vec4(color, alpha),
metalness, metalness,