-
Notifications
You must be signed in to change notification settings - Fork 523
Description
Describe the bug 💬
In UnityGLTF/PBRGraph, Specular options (Index of Refraction, Specular value, Color value, Specular Map, Enable/Disable flag) doesn't work at all. I didn't test other options like Specular UV and Specular Color but I wouldn't expect them to work either.
I marked a zone in the roof section of my specular texture as full black. In Blender, the model is correctly rendered without a specular effect in the roof section.
In Unity (via UnityGLTF), the model is rendered with a default specular effect no matter what while ignoring any change made on specular related values in the material. Assigning/removing "specular map", even disabling "Enable Specular" make no change at all.
Steps to reproduce 🔢
- Download the zip file and extract it.
- Import GLB file to Unity project (or Export it first using the Blender file).
- Compare the visual differences on the model between Unity and Blender (as described above)
- Extract the material in GLTF importer's materials tab and manually modify the extracted material in Unity.
- See that UnityGLTF shader ignores all specular related values including enable/disable flag.
Files to reproduce the issue ♻
Editor Version 🎲
Other (Provide details below)
Render Pipeline and version
URP 16.0.4
UnityGLTF Version
2.16.1
Operating System 👩💻
Windows
When does this problem happen?
- Editor Import
- Runtime Import
- Editor Export
- Runtime Export
Additional Info 📜
Unity: 2023.2.2
Blender: 4.4.3
Validations 🩹
- I have searched existing issues: no issue already exist that reports the same problem.
- I follow the Code of Conduct
- I provided a minimal reproducible example, including files when necessary.

