You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the specularityFactor property in a StandardMaterial incorrectly affects diffuse, when useMetalnessSpecularColor = true. This issue is most apparent when loading a glTF that relies on the KHR_materials_specular extension. If the glTF has "specularFactor": 0, the diffuse color is ignored in the engine, which it shouldn't.
This issue exists in both the latest 2.x and 1.x versions of the PlayCanvas engine.
The text was updated successfully, but these errors were encountered:
aidinabedi
changed the title
Material specularity doesn't behave correctly (breaking KHR_materials_specular)
Material specularity behaves incorrectly (breaking KHR_materials_specular)
Jan 21, 2025
It seems that the
specularityFactor
property in aStandardMaterial
incorrectly affects diffuse, whenuseMetalnessSpecularColor = true
. This issue is most apparent when loading a glTF that relies on theKHR_materials_specular
extension. If the glTF has"specularFactor": 0
, the diffuse color is ignored in the engine, which it shouldn't.See the attached Sphere.glb viewed in the official glTF viewer (expected result) compared to PlayCanvas glTF viewer (actual result):
This issue exists in both the latest 2.x and 1.x versions of the PlayCanvas engine.
The text was updated successfully, but these errors were encountered: