I created a material using the visual server, but I can't find some SpatialMaterial related operations in the functions, like adding a texture to it.
I tried to use the materialsetparam method like so :
VisualServer.MaterialSetParam(myMatRID, "albedo_texture", myTexture)
But it doesn't work, yet I did find the property binded to the API.
Any idea on how I could access and modify all the properties of a material created with the VisualServer ?
Also, if I instanciate a material the regular way instead and then request its RID in order to handle it with the VisualServer in several other threads, as long as I don't try to modify the resource or let the garbage collector get rid of the resource's instance before I free all the meshes RID it's attached to : it is going to be perfectly thread-safe or is there things I should be aware of ? Are all the resources treated the same way regarding parallelization in that case ?
Thanks for your answers.
Have a nice day!