As X3D v4 Materials
By default already follow PBR, some code may actually get more straightforward this way.
If in doubt, follow what glTF exporter does -- they already have Python code to "flatten" complicated Blender material setup using nodes -> simple PBR terms.
Export PhysicalMaterial, export baseColor, baseTexture.
As X3D v4 Materials By default already follow PBR, some code may actually get more straightforward this way.
If in doubt, follow what glTF exporter does -- they already have Python code to "flatten" complicated Blender material setup using nodes -> simple PBR terms.