Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Material specularity behaves incorrectly (breaking KHR_materials_specular) #7304

Open
aidinabedi opened this issue Jan 21, 2025 · 0 comments
Labels
area: graphics Graphics related issue bug

Comments

@aidinabedi
Copy link
Contributor

aidinabedi commented Jan 21, 2025

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.

See the attached Sphere.glb viewed in the official glTF viewer (expected result) compared to PlayCanvas glTF viewer (actual result):

Image

Image

This issue exists in both the latest 2.x and 1.x versions of the PlayCanvas engine.

@aidinabedi 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
@mvaligursky mvaligursky added bug area: graphics Graphics related issue labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

No branches or pull requests

2 participants