NodeMaterial PBR


Something is broken in Node Material. Perhaps a PBR block.
D20 PBR Node Material Pt 1 | Babylon.js Playground

1 Like

Thanks for reporting! I’ll see what I can find :slight_smile:

1 Like

This might not be the best solution, but it is a solution - NME - indexOfRefraction is optional, so it has no variable name. defaulting to 1.0 by RaananW · Pull Request #16479 · BabylonJS/Babylon.js · GitHub

Might be solved differently in a future PR.

1 Like

Thank you. The example is taken from a video from the Babylon js channel. Apparently, the links and the examples themselves need to be adjusted there.


Did I understand correctly that to fix the bug I need to set indexOfRefraction=1?
In this case, the material is compiled, but it seems to me that this does not return all the properties of the previous material. Although, it’s hard to say how it was now))

If you want to fix it before the PR is available to you, you should link 1.5 to indexOfRefraction, not 1 (the PR has been updated to set 1.5 and not 1.0 when nothing is connected to the IOR input).

1 Like