I'm using Godot 4. I can load an array of BaseMaterial3D objects like this:
const _materials = [
preload("../blocks/terrain_material.tres"),
preload("../blocks/terrain_material_transparent.tres"),
preload("../blocks/terrain_material_foliage.tres")
]
But, if I open up those .tres files and convert the materials to shader materials then the same code gives me this error:
Variant array is not compatible with an array of type "<unresolved type>".
good material:

bad material:

Any idea whats going on?
Thanks!