Skip to content

In UnityGLTF/PBRGraph, Specular options (IOR, 0..1 value, Color, Map, Enable flag) doesn't work at all #857

@XtroTheArctic

Description

@XtroTheArctic

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.

Image

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.

Image

Steps to reproduce 🔢

  1. Download the zip file and extract it.
  2. Import GLB file to Unity project (or Export it first using the Blender file).
  3. Compare the visual differences on the model between Unity and Blender (as described above)
  4. Extract the material in GLTF importer's materials tab and manually modify the extracted material in Unity.
  5. See that UnityGLTF shader ignores all specular related values including enable/disable flag.

Files to reproduce the issue ♻

BakeryBuilding.zip

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 🩹

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions