One problem that I am trying to accomplish is grabbing the “MainTexture” generically From any material. Some shaders name them “Albedo”, “Diffuse” just wondering if there is a way to return a texture.
Example, a user attaches a blinn, I want to grab the Albedo, and if a user attaches a lambert I want to grab the Diffuse.
A hack I can think of is to get a list of the textures attached to a material and just return the first on.