Skip to content

Commit

Permalink
Disable use of specularity factor if non-metalness workflow is used. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
GSterbrant committed Sep 15, 2022
1 parent 6b4c521 commit dbfdb82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scene/materials/standard-material-options-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class StandardMaterialOptionsBuilder {
notWhite(stdMat.diffuse);

const useSpecular = !!(stdMat.useMetalness || stdMat.specularMap || stdMat.sphereMap || stdMat.cubeMap ||
notBlack(stdMat.specular) || stdMat.specularityFactor > 0 ||
notBlack(stdMat.specular) || (stdMat.specularityFactor > 0 && stdMat.useMetalness) ||
stdMat.enableGGXSpecular ||
(stdMat.clearCoat > 0));

Expand Down

0 comments on commit dbfdb82

Please sign in to comment.