When Cesium3DTileset.opaqueMaterial == null what happens?

I was trying to change the lightning across all tiles, using the opaqueMaterial properties.
But then I discovered that the opaqueMaterial is null, and I wonder how does the tiles are still get rendered?

Hi @fistachio-2k,

If opaqueMaterial is null, the plugin will automatically fall back on a default material. These default materials are “CesiumDefaultTilesetMaterial” and “CesiumUnlitTilesetMaterial”. You can find the code for it here.

1 Like

Thanks, I wonder where primitiveInfo is being set?
Is it something that I can change manually?

Why are you trying to change primitiveInfo? It is populated while glTF primitives are being handled so that the correct behavior can be chosen for any given primitive.