Result = CreateMaterial(#Material, TextureID)Description
Creates a new material using the specified texture.
#Material A number to identify the new material. #PB_Any can be used to auto-generate this number. TextureID The texture to use. A valid 'TextureID' can be easily obtained with TextureID().
Nonzero if the material was successfully created, zero otherwise. If #PB_Any was used for the #Material parameter then the generated number is returned on success.