Helper function to create a material.
See [SetMaterialProgram], [SetMaterialValue] and [SetMaterialTexture].