Tiling & Offset + specular does not seem to work on the UnityGLTF/PBRGraph shader

I have applied a material that uses the UnityGLTF/PBRGraph shader to a cube. I have enabled specular, and have applied a specular map texture and set the specular colour to red to make it noticable, however the specular fields seem to have no effect. The tiling and offset values also do not seem to take any effect.

Is there a known issue with this shader at the moment?

Original Post on Discord

by user 259070246382469121

Hello there – we have an experimental AI bot :robot: that might be able to help you with your question. Would you like to try this out?

Specular should be exported to the browser – so, should look right when exported – but ShaderGraph is buggy with specular inputs for a while unfortunately (something we can’t fix)

Do you get the expected result in the browser?

Hm, but in your video you’re not changing specular, you’re changing the base map tiling, that should certainly work

Which Unity version / Needle version are you on?

Yeah sorry I dont think I was very clear. I should have listed it as two separate issues

  1. Offset and tiling not taking effect
  2. Specular not taking effect

To answer your question the specular does actually appear to work in browser (apologies for not checking this before hand), however the tiling and offset does not.

Unity - 2022.3.12f1
Needle - 3.29.0

by user 259070246382469121

I upgraded my Needle version as per your reccommendation last week, and can confirm that the specular didnt work in scene on that older version so I think the upgrade likely fixed that.

by user 259070246382469121

@nostalgicbear can you check if this toggle is enabled for your material above? Seems there is a UI bug where the tiling & offset properties are still shown even if that toggle is off

If you enable the toggle – does tiling & offset work again?

@herbst​:cactus: Just checked, and you’re spot on - that fixed it :slightly_smiling_face:

by user 259070246382469121

OK, thanks for confirming! I have the UI bug fixed locally here, will go out with one of the next updates

will properly look like this then when the toggle is off

That makes perfect sense. As always, thanks for the support. :slightly_smiling_face:

by user 259070246382469121

I’ll see what we can do regarding specular, but no ETA on previewing that correctly in Unity – models that you author with specular, drop into Unity and export again should work fine though (the data is there)