Commit 4a523fc
committed
Ifguard potentially unsupported MaterialX glTF PBR features
This is not strictly necessary as we add inputs regardless of the
provided NodeDef. However, an outdated NodeDef which is f.i. provided by
an older MaterialX version still produces document validation errors.
In order to avoid these errors, we make the hard assumption that the
provided MaterialX glTF PBR implementation is that of the corresponding
MaterialX C++ library, allowing us to conditionally disable newer and
unsupported features like KHR_materials_emissive_strength and
KHR_materials_iridescence.1 parent fd4ec6c commit 4a523fc
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| 589 | + | |
589 | 590 | | |
590 | 591 | | |
591 | 592 | | |
592 | 593 | | |
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
| 597 | + | |
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
| |||
646 | 648 | | |
647 | 649 | | |
648 | 650 | | |
| 651 | + | |
649 | 652 | | |
650 | 653 | | |
651 | 654 | | |
| |||
660 | 663 | | |
661 | 664 | | |
662 | 665 | | |
| 666 | + | |
663 | 667 | | |
664 | 668 | | |
665 | 669 | | |
| |||
0 commit comments