Having trouble loading textures/materials using ViroMaterials.createMaterials like in the old examples:
ViroMaterials.createMaterials({
white: {
lightingModel: "PBR",
diffuseTexture: require(.......),
metalnessTexture: require(......),
roughnessTexture: require(......),
}
});
On Android, this gives a getAssetByID error. (I haven’t checked iOS.)
I tried working around it with expo-asset, but then the materials sometimes don’t load properly — some textures just don’t show up. Even if I use require directly in Viro3DObject, I still see assets not loading every now and then.